Import
Signature
- Without fee abstraction: Single ASA transfer transaction
- With fee abstraction: [Fee payer txn (unsigned), ASA transfer (signed)]
Constructor parameters
Attributes
Examples
Methods
create_payment_payload
- Creates 2-txn group: [fee_payer_txn (unsigned), asa_transfer (signed)]
- Fee payer covers all fees (pooled: minFee * 2)
- Client signs only ASA transfer
- Creates single ASA transfer with normal fee
- Client signs the transaction
Inner payload dict (paymentGroup, paymentIndex).
x402Client wraps this with x402_version, accepted, resource, extensions.
NetworkError: If the network is unsupported and noalgod_urlwas given.NetworkMismatchError: If algod is connected to a different network thanrequirements.network.
find_default_asset
- asset “0” on ANY Algorand network -> Algo (decimals 6)
- USDC (31566704 on MainNet / 10458941 on TestNet) -> USD Coin (decimals 6)
- anything else -> None