Module common

Module common 

Source
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
Submit transaction with optional finalization check
submit_transaction_with_nonce
Submit transaction with manual nonce (no retry logic - use exact nonce provided)