Skip to main content

iota_sdk.types.balance

BaseCoinBalance Objects

@dataclass
class BaseCoinBalance()

Base coin fields for Balance.

Attributes:

  • total - The total balance.
  • available - The available amount of the total balance.

RequiredStorageDeposit Objects

@dataclass
class RequiredStorageDeposit()

Required storage deposit for the outputs in the account.

Attributes:

  • alias - The required amount for alias outputs.
  • basic - The required amount for basic outputs.
  • foundry - The required amount for foundry outputs.
  • nft - The required amount for nft outputs.

NativeTokensBalance Objects

@dataclass
class NativeTokensBalance()

Native tokens fields for Balance.

Attributes:

  • tokenId - The native token id.
  • total - The total native token balance.
  • available - The available amount of the total native token balance.
  • metadata - Some metadata of the native token.

Balance Objects

@dataclass
class Balance()

The balance of an account.

Attributes:

  • baseCoin - The base coin balance.
  • requiredStorageDeposit - The required storage deposit.
  • nativeTokens - The balances of all native tokens.
  • nfts - All owned NFTs.
  • aliases - All owned aliases.
  • foundries - All owned foundries.
  • potentiallyLockedOutputs - A list of potentially locked outputs.