Multicall3

Sonic

0xca11bde05977b3631167028862be2a173976ca11

Solidity v0.8.12+commit.f00d7308

🤖
Query this contract from your AI
Reference: 0xca11bde05977b3631167028862be2a173976ca11
Sample prompt: "Tell me the current state of sonic/0xca11bde05977b3631167028862be2a173976ca11"
No AI wired up yet? → mcp.smarts.md
Sonic is a docs-only chain on Smarts: source code and ABI are indexed, but live on-chain data (state, recent events, admin profile) is not currently available. AI agents can still query get_contract_info and get_contract_source via MCP.

Overview

Read Functions
10
Write Functions
6
Events
0

Read Functions

getBasefee() view

Can revert if the BASEFEE opcode is not implemented by the given chain

Returns

Name Type Description
basefee uint256
getBlockHash(blockNumber: uint256) view

Returns the block hash for the given block number

Parameters

Name Type Description
blockNumber uint256 The block number

Returns

Name Type Description
blockHash bytes32
getBlockNumber() view

Returns the block number

Returns

Name Type Description
blockNumber uint256
getChainId() view

Returns the chain id

Returns

Name Type Description
chainid uint256
getCurrentBlockCoinbase() view

Returns the block coinbase

Returns

Name Type Description
coinbase address
getCurrentBlockDifficulty() view

Returns the block difficulty

Returns

Name Type Description
difficulty uint256
getCurrentBlockGasLimit() view

Returns the block gas limit

Returns

Name Type Description
gaslimit uint256
getCurrentBlockTimestamp() view

Returns the block timestamp

Returns

Name Type Description
timestamp uint256
getEthBalance(addr: address) view

Returns the (ETH) balance of a given address

Parameters

Name Type Description
addr address

Returns

Name Type Description
balance uint256
getLastBlockHash() view

Returns the block hash of the last block

Returns

Name Type Description
blockHash bytes32

Write Functions

aggregate(calls: tuple[]) payable

Backwards-compatible call aggregation with Multicall

Parameters

Name Type Description
calls tuple[] An array of Call structs

Returns

Name Type Description
blockNumber uint256 blockNumber The block number where the calls were executed
returnData bytes[] returnData An array of bytes containing the responses
aggregate3(calls: tuple[]) payable

Aggregate calls, ensuring each returns success if required

Parameters

Name Type Description
calls tuple[] An array of Call3 structs

Returns

Name Type Description
returnData tuple[] returnData An array of Result structs
aggregate3Value(calls: tuple[]) payable

Reverts if msg.value is less than the sum of the call values

Parameters

Name Type Description
calls tuple[] An array of Call3Value structs

Returns

Name Type Description
returnData tuple[] returnData An array of Result structs
blockAndAggregate(calls: tuple[]) payable

Aggregate calls and allow failures using tryAggregate

Parameters

Name Type Description
calls tuple[] An array of Call structs

Returns

Name Type Description
blockNumber uint256 blockNumber The block number where the calls were executed
blockHash bytes32 blockHash The hash of the block where the calls were executed
returnData tuple[] returnData An array of Result structs
tryAggregate(requireSuccess: bool, calls: tuple[]) payable

Aggregate calls without requiring success

Parameters

Name Type Description
requireSuccess bool If true, require all calls to succeed
calls tuple[] An array of Call structs

Returns

Name Type Description
returnData tuple[] returnData An array of Result structs
tryBlockAndAggregate(requireSuccess: bool, calls: tuple[]) payable

Aggregate calls and allow failures using tryAggregate

Parameters

Name Type Description
requireSuccess bool
calls tuple[] An array of Call structs

Returns

Name Type Description
blockNumber uint256 blockNumber The block number where the calls were executed
blockHash bytes32 blockHash The hash of the block where the calls were executed
returnData tuple[] returnData An array of Result structs