ClaimableBalanceId

A claimable balance id, resolved from any of the spellings it is written in.

The same balance reaches an application under four names: the B... strkey, the bare hash as hexadecimal, and that hash behind a type discriminant carried either in the single byte the strkey body leads with or in the four big-endian bytes the XDR union writes (the spelling Horizon reports). forId reads all of them and this type reports the one balance they name, so a caller may pass on whichever spelling it received.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

the 32-byte balance hash as 64 lower case hexadecimal characters, the canonical spelling of the balance this id names

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

The id in the spelling Horizon reports: the hexadecimal of the XDR wire form, the type discriminant as four big-endian bytes ahead of the hash, in lower case.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

The id as the B... strkey, 58 characters long.

Link copied to clipboard

The id as the XDR union the wire form and the operations carry.