claimableBalance

suspend fun claimableBalance(claimableBalanceId: String): ClaimableBalanceResponse

Requests a specific claimable balance by ID.

The id may be given in any spelling ClaimableBalanceId.forId accepts; the route carries the 72-character hexadecimal of the XDR form, the spelling Horizon serves.

Return

The claimable balance response

Parameters

claimableBalanceId

The claimable balance ID to fetch

See also

Throws

If claimableBalanceId names no claimable balance, in which case no request is sent

All the exceptions below are subclasses of NetworkException

If the request fails due to a bad request (4xx)

If the request fails due to a bad response from the server (5xx)

If the request fails due to too many requests sent to the server

When Horizon returns a Timeout or connection timeout occurred

If the server returns an unknown status code

When the request cannot be executed due to cancellation or connectivity problems