Tokens

Tokens are a special type of smart contracts that implement certain methods that allow them to be used as digital coins. This section contains a description of the methods of tokens of the SWT standar

TokenBalancesGet()

returns the balance of tokens for an account with a public key address

TokenBalancesResult TokenBalancesGet(1:general.Address address)

TokenTransfersGet()

returns translations for a given token address offset - offset from the end of the transfer list to the beginning, limit - the number of transfers to be returned

TokenTransfersResult TokenTransfersGet(1:general.Address token, 2:i64 offset, 3:i64 limit)

TokenTransferGet()

returns transfers for the given TransactionId and Address token

TokenTransfersResult TokenTransferGet(1:general.Address token, 2:TransactionId id)

TokenTransfersListGet()

Returns a list of token transfers, starting at offset offset in the amount of limit. The countdown goes from the end of the blockchain to the beginning

TokenTransfersResult TokenTransfersListGet(1:i64 offset, 2:i64 limit)

TokenWalletTransfersGet()

Returns a list of token transfers for the address wallet, starting at offset offset in the amount of limit. The countdown goes from the end of the blockchain to the beginning.

TokenTransfersResult TokenWalletTransfersGet(1:general.Address token, 2:general.Address address, 3:i64 offset, 4:i64 limit)

TokenTransactionsGet()

Returns a list of transactions for the token starting at offset offset in the amount of limit. The countdown goes from the end of the blockchain to the beginning.

TokenTransactionsResult TokenTransactionsGet(1:general.Address token, 2:i64 offset, 3:i64 limit)

TokenInfoGet()

returns extended token information

TokenInfoResult TokenInfoGet(1:general.Address token)

TokenHoldersGet()

returns a list of holders for a given token

TokenHoldersResult TokenHoldersGet(1:general.Address token, 2:i64 offset, 3:i64 limit, 4:TokenHoldersSortField order, 5:bool desc)

TokensListGet()

returns a list of tokens in the system starting from offset in the amount of limit

TokensListResult TokensListGet(1:i64 offset, 2:i64 limit, 3:TokensListSortField order, 4:bool desc, 5: TokenFilters filters)

Last updated