Module offchain

Source
Expand description

Offchain helper for fetching required accounts to build instructions

Functions§

add_extra_account_metas
Offchain helper to add required account metas to an instruction, including the ones required by the transfer hook.
create_transfer_checked_instruction_with_extra_metas
Offchain helper to create a TransferChecked instruction with all additional required account metas for a transfer, including the ones required by the transfer hook.
create_transfer_checked_with_fee_instruction_with_extra_metas
Offchain helper to create a TransferCheckedWithFee instruction with all additional required account metas for a transfer, including the ones required by the transfer hook.

Type Aliases§

AccountDataResult
Type representing the output of an account fetching function, for easy chaining between APIs
AccountFetchError
Generic error type that can come out of any client while fetching account data