Multicall3

Sonic

0xca11bde05977b3631167028862be2a173976ca11

Solidity v0.8.12+commit.f00d7308

🤖
透過你的 AI 查詢此合約
參考: 0xca11bde05977b3631167028862be2a173976ca11
範例提示詞: "Tell me the current state of sonic/0xca11bde05977b3631167028862be2a173976ca11"
還沒有接入 AI?→ mcp.smarts.md
Sonic 在 Smarts 上是僅文件鏈:原始碼和 ABI 已索引,但目前不提供即時鏈上資料(狀態、最新事件、管理員概覽)。AI 代理仍可透過 MCP 呼叫 get_contract_info 和 get_contract_source。

概覽

讀取函式
10
寫入函式
6
事件
0

讀取函式

getBasefee() view

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

回傳值

名稱 類型 描述
basefee uint256
getBlockHash(blockNumber: uint256) view

Returns the block hash for the given block number

參數

名稱 類型 描述
blockNumber uint256 The block number

回傳值

名稱 類型 描述
blockHash bytes32
getBlockNumber() view

Returns the block number

回傳值

名稱 類型 描述
blockNumber uint256
getChainId() view

Returns the chain id

回傳值

名稱 類型 描述
chainid uint256
getCurrentBlockCoinbase() view

Returns the block coinbase

回傳值

名稱 類型 描述
coinbase address
getCurrentBlockDifficulty() view

Returns the block difficulty

回傳值

名稱 類型 描述
difficulty uint256
getCurrentBlockGasLimit() view

Returns the block gas limit

回傳值

名稱 類型 描述
gaslimit uint256
getCurrentBlockTimestamp() view

Returns the block timestamp

回傳值

名稱 類型 描述
timestamp uint256
getEthBalance(addr: address) view

Returns the (ETH) balance of a given address

參數

名稱 類型 描述
addr address

回傳值

名稱 類型 描述
balance uint256
getLastBlockHash() view

Returns the block hash of the last block

回傳值

名稱 類型 描述
blockHash bytes32

寫入函式

aggregate(calls: tuple[]) payable

Backwards-compatible call aggregation with Multicall

參數

名稱 類型 描述
calls tuple[] An array of Call structs

回傳值

名稱 類型 描述
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

參數

名稱 類型 描述
calls tuple[] An array of Call3 structs

回傳值

名稱 類型 描述
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

參數

名稱 類型 描述
calls tuple[] An array of Call3Value structs

回傳值

名稱 類型 描述
returnData tuple[] returnData An array of Result structs
blockAndAggregate(calls: tuple[]) payable

Aggregate calls and allow failures using tryAggregate

參數

名稱 類型 描述
calls tuple[] An array of Call structs

回傳值

名稱 類型 描述
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

參數

名稱 類型 描述
requireSuccess bool If true, require all calls to succeed
calls tuple[] An array of Call structs

回傳值

名稱 類型 描述
returnData tuple[] returnData An array of Result structs
tryBlockAndAggregate(requireSuccess: bool, calls: tuple[]) payable

Aggregate calls and allow failures using tryAggregate

參數

名稱 類型 描述
requireSuccess bool
calls tuple[] An array of Call structs

回傳值

名稱 類型 描述
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