Expand description
Common SubXT utilities and functions shared across CLI commands
Functions§
- get_
fresh_ nonce_ with_ client - Get fresh nonce for account from the latest block using existing QuantusClient This function ensures we always get the most current nonce from the chain to avoid “Transaction is outdated” errors
- get_
incremented_ nonce_ with_ client - Get incremented nonce for retry scenarios from the latest block using existing QuantusClient This is useful when a transaction fails but the chain doesn’t update the nonce
- resolve_
address - Resolve address - if it’s a wallet name, return the wallet’s address If it’s already an SS58 address, return it as is
- submit_
transaction - Helper function to submit transaction with nonce management and retry logic Submit transaction with best block nonce for better performance on fast chains
- submit_
transaction_ with_ nonce - Submit transaction with manual nonce (no retry logic - use exact nonce provided)