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.
Get information about the liquidity pool including token details and pool data
Pool information including token details and pool data
Get price for a given quantity and token
The quantity to get price for (number or string)
The token ID
Price as a number
Get price of token A in terms of token B
The quantity of token A
Price in token B
Get price of token B in terms of token A
The quantity of token B
Price in token A
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
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
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.
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.