Crate ic_ledger_types

Source
Expand description

A library of types to communicate with the ICP ledger canister.

Structs§

  • Arguments for the account_balance call.
  • AccountIdentifier is a 32-byte array. The first 4 bytes is a big-endian encoding of a CRC32 checksum of the last 28 bytes.
  • A function that can be called to retrieve a range of archived blocks.
  • A single record in the ledger.
  • A prefix of the block range specified in the get_blocks and query_archived_blocks function.
  • An error for reporting invalid checksums.
  • Arguments for the get_blocks function.
  • An arbitrary number associated with a transaction. The caller can set it in a transfer call as a correlation identifier.
  • Function type used by query_blocks for fetching blocks from the archive. Has the signature (GetBlocksArgs) -> (GetBlocksResult).
  • Return type for the query_blocks function.
  • Subaccount is an arbitrary 32-byte byte array. Ledger uses subaccounts to compute account address, which enables one principal to control multiple ledger accounts.
  • Return type of the token_symbol function.
  • Number of nanoseconds from the UNIX epoch in UTC timezone.
  • A type for representing amounts of Tokens.
  • A recorded ledger transaction.
  • Arguments for the transfer call.

Enums§

Constants§

Functions§

Type Aliases§