Gets the balance of a specific identifier (address) in the token ledger. This is a read-only operation that queries the current state of the ledger.
The address to check the balance for
Promise resolving to the current balance as a string
Gets a paginated list of all balances in the token ledger. This is a read-only operation that returns all ledger/account balances.
Optional
limit: numberOptional maximum number of balances to return per page
Optional
cursor: stringOptional pagination cursor for fetching subsequent pages
Promise resolving to the dry run result containing the balances
Performs a dry run, executing the logic of a message without actually persisting the result. When useDryRunAsMessage is false (default), this performs a simulation. When useDryRunAsMessage is true, this executes as a real message.
Optional data to be passed to the message.
Optional tags to be passed to the message.
Optional
anchor: stringOptional anchor to be passed to the message.
Optional
id: stringOptional ID to be passed to the message.
Optional
owner: stringOptional owner to be passed to the message.
A DryRunResult object containing the output of the message, including the result of any computations, and any spawned messages. Or a MessageResult if useDryRunAsMessage is true.
Gets information about a token process including name, ticker, logo, and denomination. These are immutable parameters set when the token process was spawned.
Optional
token: stringOptional token process ID to get information for. If not provided, uses the current process ID.
Promise resolving to TokenInfo with token information
Boolean indicating whether or not the client is set to run dryruns as messages. (non default behavior)
Retrieves the transaction that created this process. This transaction contains the initial state and configuration of the process in its tags.
Promise resolving to the transaction data containing process creation details
Gets the wallet this client uses to sign messages
the wallet used for message signing
Grants tokens to a recipient address
The amount of tokens to grant
Optional
recipient: stringThe recipient address, defaults to the calling wallet address
Promise resolving to boolean indicating success
A Readonly Client can only perform dry run and result operations, however does not require a wallet to be used. If a wallet is specified on instantiation the client will additionally be able to use write operations (messages).
Boolean indicating whether or not the client is for read operations only.
Boolean indicating whether or not the client is set to run dryruns as messages. (non default behavior)
Send a message to an ao Message Unit (mu) targeting an ao process.
Optional
data: stringOptional data to be passed to the message
Optional
tags: TagsOptional tags to be passed to the message
Optional
anchor: stringOptional 32 byte anchor to be set on the DataItem
Promise resolving to the message ID
Mints new tokens, increasing the total supply. This operation can only be performed on the root token process.
The amount of new tokens to create
Promise resolving to true if minting was successful
Read a batch of results from a process. Can be used as a polling mechanism for new results.
Optional
from: stringOptional cursor starting point
Optional
to: stringOptional cursor ending point
Optional
limit: numberOptional number of results to return (default: 25)
Optional
sort: stringOptional sort order ('ASC' or 'DESC', default: 'ASC')
Promise resolving to ResultsResponse containing the batch of results
Controls whether dryrun executes as a message or simulation.
When true, dryrun will execute as a real message. When false (default), executes as a simulation.
Sets the wallet being used for this client. If the client is readonly it will now have write abilities.
the wallet to use with this client.
Transfers tokens from the caller's balance to one or more target addresses. This operation modifies the ledger state by updating balances.
The target address to receive the tokens
The amount of tokens to transfer
Optional
forwardedTags: TagsOptional tags to include with the transfer message for additional metadata or notifications
Promise resolving to true if the transfer was successful
Interface for interacting with ao token processes. Implements the standard token interface specification for managing transferable assets.
See
specification