discover

suspend fun discover(): Discovery

Suspended function that retrieves the Discovery data from the JSON-RPC API service using the rpc.discover method. This method provides documentation describing the available JSON-RPC APIs.

Return

Discovery object containing the discovered APIs.

Throws

if an error occurs while decoding the JSON response or if the response is an error.