Module-level declarations
Functions
Queries
Retrieves all registered assets, paginated.
Returns how much of an asset the account holds. This query returns null
if the account does not have the asset.
Retrieves all the balances of a certain account, paginated.
Returns the details of an asset given its id
Outputs the details of an asset in a format that is used by other chains to register it as a crosschain asset.
Throws if the asset does not exist on this chain.
Returns all assets that have the specified name, paginated.
Retrieves all assets with the given symbol, paginated.
Retrieves all assets of a specified type, paginated.
Returns a transfer_detail
object for each transfer_entry
that was registered during the operation specified.
Same as get_transfer_details
, but restricts the results to transfer entries related to the asset specified.
Fetches all transfers to and from an account, allowing filtering in multiple ways. Paginated.
Retrieves a transfer history entry given its rowid
. Said rowid
can be acquired by for example using the get_transfer_history
query.
Returns null if no transfer history is found at the specified rowid
Fetches all transfers to and from an any account, which occurred after a specific height. Paginated.
Operations
Deletes tokens from an account's balance, decreasing the total supply by the amount being burned.
Must be signed by an auth descriptor with accounts.auth_flags.TRANSFER
Throws if the required assets cannot be burned. Common cases include:
the account balance is lower than
amount
the amount to burn is not in the accepted range (0; 2^256) (exclusive)
some conditions added in development through burn extensions (
before_burn
orafter_burn
) aren't met
Allows recalling a transfer that was sent to a non-existing account and was not used to create the account.
Must be signed by an auth descriptor with accounts.auth_flags.TRANSFER
Throws if recalling is impossible. Common cases include:
account registration on transfer is not allowed
some conditions added in development through recall_on_internal_transfer extensions (
recall_on_internal_transfer
) aren't met
Transfers tokens to a certain recipient.
if the recipient exists, a normal transfer will take place;
otherwise:
if account creation on transfer is enabled, the account registration procedure will be started;
an error is thrown
Must be signed by an auth descriptor with accounts.auth_flags.TRANSFER
Throws if the required assets cannot be transferred. Common cases include:
the sender account's balance is lower than
amount
the amount to transfer is not in the accepted range (0, 2^256) (exclusive)
some conditions added in development through transfer extensions (
before_transfer
orafter_transfer
) aren't met