Module utils

Source

Functions§

compress
decompress
deserialize
estimate_chunks
find_tape_account
get_account
Fetches an account by address and returns its serialized data.
get_archive_account
get_block_by_number
Fetches a block by slot number with retry logic, using the specified transaction details.
get_block_height
Fetches the latest confirmed block height with retry logic.
get_blocks_with_limit
Fetches a list of confirmed slots starting from start_slot with a limit, using retry logic.
get_epoch_account
get_latest_blockhash
Fetches the latest blockhash and returns it serialized.
get_miner_account
get_program_account
Fetches program accounts with the given configuration.
get_signatures_for_address
Fetches transaction signatures for an address with the given configuration, with retry logic.
get_slot
Fetches the current slot with retry logic.
get_spool_account
get_tape_account
get_transaction
Fetches a transaction by signature, returning its serialized data.
get_transaction_with_retry
Fetches a transaction with retry logic, returning the deserialized transaction.
get_writer_account
retry
Generic retry function for asynchronous operations with exponential backoff.
rpc_tx_config
Returns the default transaction configuration for RPC calls.
send
Sends a transaction and returns its signature.
send_and_confirm
Sends and confirms a transaction, returning its signature.
send_and_confirm_transaction
Sends and confirms a transaction, returning its serialized signature.
send_transaction
Sends a transaction and returns its serialized signature.
send_with_retry
Sends a transaction with retry logic, returning its signature.
serialize
with_logs
Handles transaction simulation logs for failed transactions.