Import
Signature
- Fetches current suggested transaction parameters from the algod client.
- Matches the requirement against the active algod network using
selectRequirement. - Builds the exact AVM atomic transaction group via
buildExactAvmGroup. - Calls
signTxnsfor the transaction indexes requiring payer signature. - Assembles signed and unsigned transactions and encodes the
PAYMENT-SIGNATUREheader.
Parameters
(txns: Uint8Array[], indexes: number[]) => Promise<(Uint8Array | null)[]>, controls: SpendControls = {}
required
Callback function that signs unsigned transaction byte arrays for specified indexes.
Returns
Throws
NoSupportedRequirementError: Ifacceptsis empty.NetworkMismatchError: If no offer is for the algod’s network.SpendLimitExceededError: If the amount is above the cap.PaymentNotAllowedError: If the asset, network or recipient is not allowed. Errors from algod or fromsignTxnspropagate unchanged.