SelfPlanAndSendFunctions
Methods that allow an instruction or instruction plan to plan and send itself.
These methods are added to instruction or instruction plan objects via
addSelfPlanAndSendFunctions, enabling a fluent API where you can call
.sendTransaction() directly on an instruction without passing it to a separate function.
Examples
Sending a transfer instruction directly.
Planning multiple transactions from an instruction plan.
See
Properties
planTransaction()
Plans a single transaction.
Parameters
| Parameter | Type |
|---|---|
config? | Parameters<PlanTransaction>[1] |
Returns
ReturnType<PlanTransaction>
planTransactions()
Plans one or more transactions.
Parameters
| Parameter | Type |
|---|---|
config? | Parameters<PlanTransactions>[1] |
Returns
ReturnType<PlanTransactions>
sendTransaction()
Sends a single transaction.
Parameters
| Parameter | Type |
|---|---|
config? | Parameters<SendTransaction>[1] |
Returns
ReturnType<SendTransaction>
sendTransactions()
Sends one or more transactions.
Parameters
| Parameter | Type |
|---|---|
config? | Parameters<SendTransactions>[1] |
Returns
ReturnType<SendTransactions>