Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Register AVM exact payment schemes to x402Facilitator.
from x402_algorand.exact import register_exact_avm_facilitator
def register_exact_avm_facilitator( facilitator: FacilitatorT, signer: FacilitatorAvmSigner, networks: str | list[str], ) -> FacilitatorT
import os from algosdk.v2client.algod import AlgodClient from x402 import x402Facilitator from x402_algorand import ServerAvmSigner, caip2_from_genesis_hash from x402_algorand.exact import register_exact_avm_facilitator algod = AlgodClient("a" * 64, "http://localhost:4001") # LocalNet network = caip2_from_genesis_hash(algod.suggested_params().gh) signer = ServerAvmSigner.from_mnemonic(os.environ["FACILITATOR_MNEMONIC"], algod) facilitator = x402Facilitator() register_exact_avm_facilitator(facilitator, signer, network)