A set of accounts mapping one-to-one to the program's accounts struct, i.e.,
the type deriving
The name of each field should match the name for that account in the IDL.
If multiple accounts are nested in the rust program, then they should be nested here.
An address to identify an account on chain. Can be a PublicKey, or Base 58 encoded string.
Context provides all non-argument inputs for generating Anchor transactions.
Accounts used in the instruction context.
Instructions to run before a given method. Often this is used, for example to create accounts prior to executing a method.
Commitment parameters to use for a transaction.
All accounts to pass into an instruction after the main
This can be used for optional or otherwise unknown accounts.
Accounts that must sign a given transaction.
Function to create a
TransactionInstruction generated from an IDL.
Additionally it provides an
accounts utility method, returning a list
of ordered accounts for the instruction.
RpcFn is a single RPC method generated from an IDL, sending a transaction paid for and signed by the configured provider.
RpcFn is a single method generated from an IDL. It simulates a method against a cluster configured by the provider, returning a list of all the events and raw logs that were emitted during the execution of the method.
Tx is a function to create a
Transaction for a given program instruction.
workspace namespace provides a convenience API to automatically
search for and deserialize Program objects defined by compiled IDLs
in an Anchor workspace.
This API is for Node only.
Returns the default provider being used by the client.
Sets the default provider on the client.
Generated using TypeDoc