Import
Signature
FacilitatorAvmSigner) backed by private keys and algod.
Signs fee payer transactions, simulates groups, sends them, and waits for
confirmation. It also implements ClientAvmSigner (address /
sign_transactions), so one object can serve both roles in tests and demos.
algod selection:
algod_client(oralgod_url/algod_token) given: that node is used for every call. The first call for a network checks that the node’s genesis hash matches it and raisesNetworkMismatchErrorotherwise.- nothing given: the algod URL configured for the network in
NETWORK_CONFIGS(MainNet / TestNet defaults, or a network added withregister_network).
Constructor parameters
Methods
from_private_key
from_mnemonic
sign_transactions
indexes_to_sign with the key of each sender.
Parameters
get_addresses
sign_transaction
fee_payer’s key.
Parameters
Raises
SigningError: Iffee_payeris not managed by this signer.
sign_group
indexes_to_sign with fee_payer’s key.
Parameters
Raises
SigningError: Iffee_payeris not managed by this signer.
simulate_group
SimulationError: If algod reports the group would fail.NetworkMismatchError: If algod is on a different network.
send_group
confirm_transaction
rounds rounds for txid to be in a block.
Parameters
Raises
algosdk.error.ConfirmationTimeoutError: If not confirmed in time.algosdk.error.TransactionRejectedError: If the pool rejected it.
algod_for
network (CAIP-2 or V1 name).
Parameters
Raises
NetworkError: If no algod is configured for the network.NetworkMismatchError: If the configured algod is on another network.