Skip to main content

Base Chain

Read balances, blocks, transactions, receipts, logs and contract state, estimate gas, call and simulate contracts, broadcast signed transactions, check mempool status and trace transactions, with Flashblocks pre-confirmed state.

Base Chain Logo

Authentication​

This connector uses Token-based authentication.

info

Set up your connection in the Abstra Console before using it in your workflows.

How to use​

Using the Smart Chat​

Execute the action "CHOOSE_ONE_ACTION_BELOW" from my connector "YOUR_CONNECTOR_NAME" using the params "PARAMS_HERE".

Using the Web Editor​

from abstra.connectors import run_connection_action

result = run_connection_action(
connection_name="your_connection_name",
action_name="your_action_name",
params={
"param1": "value1",
"param2": "value2"
})

Available Actions​

This connector provides 30 actions:

ActionPurposeParameters
eth_block_numberReturns the number of the most recently mined block, as a hex quantity.No parameters
eth_get_balanceReturns the ETH balance of an account in wei, as a hex quantity, at the given block. Use pending for the 200ms pre-confirmed balance.address (string) required
block (string) required
eth_get_transaction_countReturns the number of transactions sent from an address its nonce, as a hex quantity. Use pending to get the pre-confirmed nonce.address (string) required
block (string) required
eth_get_codeReturns the bytecode deployed at an address 0x for accounts without code. Use pending to detect contracts deployed before the block seals.address (string) required
block (string) required
eth_get_storage_atReturns the 32-byte value stored in a contract storage slot. Use pending for pre-confirmed storage reads.address (string) required
position (string) required
block (string) required
eth_callExecutes a message call without broadcasting a transaction no gas is spent on-chain and returns the hex-encoded return data. Used to read contract state or simulate calls. Use pending to run against the pre-confirmed Flashblock state.transaction: {
. from (string)
. to (string)
. gas (string)
. gasPrice (string)
. maxFeePerGas (string)
. maxPriorityFeePerGas (string)
. value (string)
. data (string)
} (object) required
block (string) required
eth_get_block_by_numberReturns a block by number or tag, or null if it does not exist. With pending, returns the live pre-confirmed Flashblock, updated every ~200ms.block (string) required
fullTransactions (boolean) required
eth_get_block_by_hashReturns a block by its hash, or null if it does not exist.blockHash (string) required
fullTransactions (boolean) required
eth_get_block_receiptsReturns all transaction receipts of a block. Use pending for pre-confirmed receipts.block (string) required
eth_get_block_transaction_count_by_numberReturns the number of transactions in a block, by number or tag, as a hex quantity.block (string) required
eth_get_block_transaction_count_by_hashReturns the number of transactions in a block, by block hash, as a hex quantity.blockHash (string) required
eth_get_transaction_by_hashReturns a transaction by its hash, or null if it is not known.transactionHash (string) required
eth_get_transaction_by_block_hash_and_indexReturns the transaction at the given index of the block with the given hash.blockHash (string) required
index (string) required
eth_get_transaction_by_block_number_and_indexReturns the transaction at the given index of the block with the given number or tag.block (string) required
index (string) required
eth_get_transaction_receiptReturns the receipt of a mined transaction, or null before it is included in a block. Base receipts also carry the L1 data fee fields l1Fee, l1GasUsed, l1GasPrice, ....transactionHash (string) required
eth_send_raw_transactionSubmits a pre-signed, RLP-encoded transaction to the network and returns its hash. Base endpoints are Flashblocks-enabled, so the transaction is considered for the next ~200ms Flashblock.data (string) required
eth_gas_priceReturns the current gas price in wei, as a hex quantity.No parameters
eth_max_priority_fee_per_gasReturns the suggested EIP-1559 priority fee tip per gas in wei, as a hex quantity.No parameters
eth_fee_historyReturns base fees, gas used ratios and priority fee percentiles for a range of blocks. Useful for fee estimation.blockCount (string) required
newestBlock (string) required
rewardPercentiles (array) required
eth_estimate_gasEstimates the gas a transaction needs, as a hex quantity, without broadcasting it. Use pending to estimate against pre-confirmed state.transaction: {
. from (string)
. to (string)
. gas (string)
. gasPrice (string)
. maxFeePerGas (string)
. maxPriorityFeePerGas (string)
. value (string)
. data (string)
} (object) required
block (string)
eth_get_logsReturns the logs matching a filter; Base logs also carry blockTimestamp. Keep fromBlock-toBlock ranges under 2,000 blocks for reliable results providers may enforce their own limits. Use pending to include logs from pre-confirmed transactions.filter: {
. fromBlock (string)
. toBlock (string)
. address
. topics (array)
. blockHash (string)
} (object) required
eth_chain_idReturns the chain ID as a hex quantity: 0x2105 8453 on Base Mainnet, 0x14a34 84532 on Base Sepolia.No parameters
eth_syncingReturns the sync status of the node, or false when it is fully synced.No parameters
net_versionReturns the network ID as a decimal string: 8453 on Base Mainnet, 84532 on Base Sepolia.No parameters
web3_client_versionReturns the client version string of the node.No parameters
eth_simulate_v1Simulates one or more transaction bundles against the pre-confirmed Flashblock state, with optional state and block overrides, multi-block simulation and ETH transfer tracing. Returns one simulated block per entry of blockStateCalls, each with its call results. Only available on Flashblocks endpoints https://mainnet.base.org, https://sepolia.base.org.simulationPayload: {
. blockStateCalls (array)
. traceTransfers (boolean)
. validation (boolean)
} (object) required
blockParameter (string) required
base_transaction_statusChecks whether a transaction is in the node mempool: returns 'status': 'Known' if it is, 'status': 'Unknown' if the node has not seen it. Use it to confirm a submitted transaction was received before it appears in a Flashblock. Only available on Flashblocks endpoints, and not every endpoint serves it; when it is unavailable the node error is returned.transactionHash (string) required
debug_trace_transactionReplays a transaction and returns its full EVM execution trace: struct logs by default, or a call tree with tracer: callTracer. Computationally expensive; requires an RPC provider with debug APIs enabled the public Base endpoints reject debug methods.transactionHash (string) required
traceOptions: {
. tracer (string)
. tracerConfig (object)
. disableStorage (boolean)
. disableMemory (boolean)
. disableStack (boolean)
. timeout (string)
} (object)
debug_trace_block_by_hashReplays every transaction of the block with the given hash and returns one trace per transaction txHash and result. Computationally expensive; requires an RPC provider with debug APIs enabled the public Base endpoints reject debug methods.blockHash (string) required
traceOptions: {
. tracer (string)
. tracerConfig (object)
. disableStorage (boolean)
. disableMemory (boolean)
. disableStack (boolean)
. timeout (string)
} (object)
debug_trace_block_by_numberReplays every transaction of the block with the given number or tag and returns one trace per transaction. Computationally expensive; requires an RPC provider with debug APIs enabled the public Base endpoints reject debug methods.block (string) required
traceOptions: {
. tracer (string)
. tracerConfig (object)
. disableStorage (boolean)
. disableMemory (boolean)
. disableStack (boolean)
. timeout (string)
} (object)