Protected_Optionalidentifier: stringThe 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 maximum number of balances to return per page
Optionalcursor: stringOptional pagination cursor for fetching subsequent pages
Promise resolving to the dry run result containing the balances
ProtecteddryrunGets the current AO client instance being used by this process client.
The IAOClient instance currently in use
Gets information about the token.
Optionaltoken: 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
Optionalrecipient: 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)
ProtectedmessageProtectedOptionalanchor: stringOptionalanchor: stringMints 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
ProtectedresultProtectedProtectedresultsProtectedOptionalfrom: stringOptionalto: stringControls 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.
Transfer an NFT to a recipient. If no quantity is specified, defaults to 1.
The recipient's address
Optional quantity to transfer (defaults to 1)
OptionalforwardedTags: TagsOptional tags to forward with the transfer
StaticautoStaticbuilderCreates a builder for TokenClient instances
A new builder for TokenClient
Staticdefault
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.