Protected_ProtecteddryrunGets the current AO client instance being used by this process client.
The IAOClient instance currently in use
Gets the balance from the PI token process.
Optionaltarget: stringOptional target wallet address. If not provided, uses the calling wallet address.
Promise resolving to the balance as a string
Gets the claimable balance from the PI token process.
Promise resolving to the claimable balance as a string
Gets information about the PI token process.
Promise resolving to a DryRunResult 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 tick history from the PI token process.
Promise resolving to the tick history data as a string
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)
ProtectedmessageProtectedOptionalanchor: stringOptionalanchor: stringParse the raw tick history string into a structured array
Raw tick history data string
Parsed tick history entries
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.
StaticautoStaticbuildStatic method to easily build a PIToken client with optional CU URL override
The PI Token process ID
OptionalcuUrl: stringOptional Compute Unit URL to override the default
A configured PITokenClient instance
StaticbuilderCreate a new builder instance for PITokenClient
A new builder instance
Staticdefault
Client for interacting with a specific PI token process.