Balance

@Serializable
data class Balance(val asset: Asset, val balance: BigInteger)

Represents the balance of a blockchain asset.

This data class encapsulates an asset and its balance in the smallest unit (e.g., wei for ETH, satoshi for BTC).

See also

Constructors

Link copied to clipboard
constructor(asset: Asset, balance: BigInteger)

Properties

Link copied to clipboard

The asset for which the balance was queried

Link copied to clipboard
@Serializable(with = BigIntegerSerializer::class)
val balance: BigInteger

The balance in the smallest unit