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.
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:
| Action | Purpose | Parameters |
|---|---|---|
| eth_block_number | Returns the number of the most recently mined block, as a hex quantity. | No parameters |
| eth_get_balance | Returns 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_count | Returns 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_code | Returns 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_at | Returns 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_call | Executes 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_number | Returns 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_hash | Returns a block by its hash, or null if it does not exist. | blockHash (string) required fullTransactions (boolean) required |
| eth_get_block_receipts | Returns all transaction receipts of a block. Use pending for pre-confirmed receipts. | block (string) required |
| eth_get_block_transaction_count_by_number | Returns the number of transactions in a block, by number or tag, as a hex quantity. | block (string) required |
| eth_get_block_transaction_count_by_hash | Returns the number of transactions in a block, by block hash, as a hex quantity. | blockHash (string) required |
| eth_get_transaction_by_hash | Returns a transaction by its hash, or null if it is not known. | transactionHash (string) required |
| eth_get_transaction_by_block_hash_and_index | Returns 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_index | Returns the transaction at the given index of the block with the given number or tag. | block (string) required index (string) required |
| eth_get_transaction_receipt | Returns 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_transaction | Submits 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_price | Returns the current gas price in wei, as a hex quantity. | No parameters |
| eth_max_priority_fee_per_gas | Returns the suggested EIP-1559 priority fee tip per gas in wei, as a hex quantity. | No parameters |
| eth_fee_history | Returns 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_gas | Estimates 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_logs | Returns 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_id | Returns the chain ID as a hex quantity: 0x2105 8453 on Base Mainnet, 0x14a34 84532 on Base Sepolia. | No parameters |
| eth_syncing | Returns the sync status of the node, or false when it is fully synced. | No parameters |
| net_version | Returns the network ID as a decimal string: 8453 on Base Mainnet, 84532 on Base Sepolia. | No parameters |
| web3_client_version | Returns the client version string of the node. | No parameters |
| eth_simulate_v1 | Simulates 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_status | Checks 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_transaction | Replays 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_hash | Replays 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_number | Replays 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) |