Structs
TokenBalance
Swift Structure
Structure
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Swift Structure
struct TokenBalance
init(symbol: TokenBalance.Symbol, name: String, amount: String, contractAddress: String? = nil, decimals: Int? = nil, rawAmount: String? = nil, available: TokenAmount? = nil, locked: TokenAmount? = nil, accounts: [TokenAccountBalance]? = nil)
| Property | Type | Description |
|---|---|---|
accounts | [TokenAccountBalance]? | The balance of this token in each account that holds it, such as the wallet and a card. The value is nil when the balance API does not give it. |
amount | String | - |
available | TokenAmount? | The part of the balance that the wallet can spend now, on the wallet’s own chain. The value is nil when the balance API does not give it. |
contractAddress | String? | - |
decimals | Int? | - |
locked | TokenAmount? | The part of the balance that the wallet cannot spend yet, such as a card charge that is pending. The value is nil when the balance API does not give it. |
name | String | - |
rawAmount | String? | - |
symbol | TokenBalance.Symbol | - |
token | CryptoCurrency | - |
enum Symbol
Was this page helpful?
