Skip to content

Update docs to use Nitro v3.6.2 #2304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Multiplying the value obtained from `eth_estimateGas` by the child chain gas pri

Alternatively, to obtain the gas limit for your transaction, you can call `NodeInterface.gasEstimateComponents()` and then use the first result, which is `gasEstimate`. Next, to find the total cost, you need to multiply this amount by the child chain gas price, which is available in the third result, `baseFee`.

Note that when working with parent to child chain messages (also known as [retryable tickets](/how-arbitrum-works/10-l1-to-l2-messaging.mdx)), you can use the function [`L1ToL2MessageGasEstimator.estimateAll()`](https://github.com/OffchainLabs/arbitrum-sdk/blob/main/src/lib/message/L1ToL2MessageGasEstimator.ts#L215) of the Arbitrum SDK or [`NodeInterface.estimateRetryableTicket()`](https://github.com/OffchainLabs/@@nitroRepositorySlug=nitro@@/blob/@@nitroVersionTag=v3.5.5@@/nodeInterface/NodeInterface.go#L120) to get all the gas information needed to send a successful transaction.
Note that when working with parent to child chain messages (also known as [retryable tickets](/how-arbitrum-works/10-l1-to-l2-messaging.mdx)), you can use the function [`L1ToL2MessageGasEstimator.estimateAll()`](https://github.com/OffchainLabs/arbitrum-sdk/blob/main/src/lib/message/L1ToL2MessageGasEstimator.ts#L215) of the Arbitrum SDK or [`NodeInterface.estimateRetryableTicket()`](https://github.com/OffchainLabs/@@nitroRepositorySlug=nitro@@/blob/@@nitroVersionTag=v3.6.2@@/nodeInterface/NodeInterface.go#L120) to get all the gas information needed to send a successful transaction.

## Breaking down the formula

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ content_type: concept

<!-- todo: remove this doc, redirect to existing ref doc -->

The Arbitrum Nitro software includes a special `NodeInterface` contract available at address `0xc8` that is only accessible via RPCs (it's not actually deployed onchain and thus can't be called by smart contracts). The way it works is that the node uses Geth's [`InterceptRPCMessage`](https://github.com/OffchainLabs/go-ethereum/blob/@@goEthereumCommit=0086d610ac8e84a95b66205db942dc181c3eb590@@/internal/ethapi/api.go#L1034) hook to detect messages sent to the address `0xc8`, and swaps out the message it's handling before deriving a transaction from it.
The Arbitrum Nitro software includes a special `NodeInterface` contract available at address `0xc8` that is only accessible via RPCs (it's not actually deployed onchain and thus can't be called by smart contracts). The way it works is that the node uses Geth's [`InterceptRPCMessage`](https://github.com/OffchainLabs/go-ethereum/blob/@@goEthereumCommit=25fc5f0842584e72455e4d60a61f035623b1aba0@@/internal/ethapi/api.go#L1034) hook to detect messages sent to the address `0xc8`, and swaps out the message it's handling before deriving a transaction from it.

The [reference page](/build-decentralized-apps/nodeinterface/02-reference.mdx) contains information about all methods available in the `NodeInterface`.
56 changes: 28 additions & 28 deletions arbitrum-docs/build-decentralized-apps/precompiles/02-reference.mdx

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro-contracts/blob/780366a0c40caf694ed544a6a1d52c0de56573ba/src/precompiles/ArbAddressTable.sol#L17"
href="https://github.com/OffchainLabs/nitro-contracts/blob/601afc77e5b2a2dfd6f7075f2f3a48989c0be740/src/precompiles/ArbAddressTable.sol#L17"
target="_blank"
>
Interface
</a>
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro/blob/v3.5.5/precompiles/ArbAddressTable.go#L17"
href="https://github.com/OffchainLabs/nitro/blob/v3.6.2/precompiles/ArbAddressTable.go#L17"
target="_blank"
>
Implementation
Expand All @@ -36,15 +36,15 @@
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro-contracts/blob/780366a0c40caf694ed544a6a1d52c0de56573ba/src/precompiles/ArbAddressTable.sol#L26"
href="https://github.com/OffchainLabs/nitro-contracts/blob/601afc77e5b2a2dfd6f7075f2f3a48989c0be740/src/precompiles/ArbAddressTable.sol#L26"
target="_blank"
>
Interface
</a>
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro/blob/v3.5.5/precompiles/ArbAddressTable.go#L22"
href="https://github.com/OffchainLabs/nitro/blob/v3.6.2/precompiles/ArbAddressTable.go#L22"
target="_blank"
>
Implementation
Expand All @@ -58,15 +58,15 @@
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro-contracts/blob/780366a0c40caf694ed544a6a1d52c0de56573ba/src/precompiles/ArbAddressTable.sol#L36"
href="https://github.com/OffchainLabs/nitro-contracts/blob/601afc77e5b2a2dfd6f7075f2f3a48989c0be740/src/precompiles/ArbAddressTable.sol#L36"
target="_blank"
>
Interface
</a>
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro/blob/v3.5.5/precompiles/ArbAddressTable.go#L27"
href="https://github.com/OffchainLabs/nitro/blob/v3.6.2/precompiles/ArbAddressTable.go#L27"
target="_blank"
>
Implementation
Expand All @@ -82,15 +82,15 @@
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro-contracts/blob/780366a0c40caf694ed544a6a1d52c0de56573ba/src/precompiles/ArbAddressTable.sol#L45"
href="https://github.com/OffchainLabs/nitro-contracts/blob/601afc77e5b2a2dfd6f7075f2f3a48989c0be740/src/precompiles/ArbAddressTable.sol#L45"
target="_blank"
>
Interface
</a>
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro/blob/v3.5.5/precompiles/ArbAddressTable.go#L40"
href="https://github.com/OffchainLabs/nitro/blob/v3.6.2/precompiles/ArbAddressTable.go#L40"
target="_blank"
>
Implementation
Expand All @@ -104,15 +104,15 @@
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro-contracts/blob/780366a0c40caf694ed544a6a1d52c0de56573ba/src/precompiles/ArbAddressTable.sol#L53"
href="https://github.com/OffchainLabs/nitro-contracts/blob/601afc77e5b2a2dfd6f7075f2f3a48989c0be740/src/precompiles/ArbAddressTable.sol#L53"
target="_blank"
>
Interface
</a>
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro/blob/v3.5.5/precompiles/ArbAddressTable.go#L52"
href="https://github.com/OffchainLabs/nitro/blob/v3.6.2/precompiles/ArbAddressTable.go#L52"
target="_blank"
>
Implementation
Expand All @@ -126,15 +126,15 @@
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro-contracts/blob/780366a0c40caf694ed544a6a1d52c0de56573ba/src/precompiles/ArbAddressTable.sol#L62"
href="https://github.com/OffchainLabs/nitro-contracts/blob/601afc77e5b2a2dfd6f7075f2f3a48989c0be740/src/precompiles/ArbAddressTable.sol#L62"
target="_blank"
>
Interface
</a>
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro/blob/v3.5.5/precompiles/ArbAddressTable.go#L67"
href="https://github.com/OffchainLabs/nitro/blob/v3.6.2/precompiles/ArbAddressTable.go#L67"
target="_blank"
>
Implementation
Expand All @@ -148,15 +148,15 @@
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro-contracts/blob/780366a0c40caf694ed544a6a1d52c0de56573ba/src/precompiles/ArbAddressTable.sol#L69"
href="https://github.com/OffchainLabs/nitro-contracts/blob/601afc77e5b2a2dfd6f7075f2f3a48989c0be740/src/precompiles/ArbAddressTable.sol#L69"
target="_blank"
>
Interface
</a>
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro/blob/v3.5.5/precompiles/ArbAddressTable.go#L73"
href="https://github.com/OffchainLabs/nitro/blob/v3.6.2/precompiles/ArbAddressTable.go#L73"
target="_blank"
>
Implementation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro-contracts/blob/780366a0c40caf694ed544a6a1d52c0de56573ba/src/precompiles/ArbAggregator.sol#L14"
href="https://github.com/OffchainLabs/nitro-contracts/blob/601afc77e5b2a2dfd6f7075f2f3a48989c0be740/src/precompiles/ArbAggregator.sol#L14"
target="_blank"
>
Interface
</a>
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro/blob/v3.5.5/precompiles/ArbAggregator.go#L24"
href="https://github.com/OffchainLabs/nitro/blob/v3.6.2/precompiles/ArbAggregator.go#L24"
target="_blank"
>
Implementation
Expand All @@ -36,15 +36,15 @@
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro-contracts/blob/780366a0c40caf694ed544a6a1d52c0de56573ba/src/precompiles/ArbAggregator.sol#L20"
href="https://github.com/OffchainLabs/nitro-contracts/blob/601afc77e5b2a2dfd6f7075f2f3a48989c0be740/src/precompiles/ArbAggregator.sol#L20"
target="_blank"
>
Interface
</a>
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro/blob/v3.5.5/precompiles/ArbAggregator.go#L30"
href="https://github.com/OffchainLabs/nitro/blob/v3.6.2/precompiles/ArbAggregator.go#L30"
target="_blank"
>
Implementation
Expand All @@ -58,15 +58,15 @@
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro-contracts/blob/780366a0c40caf694ed544a6a1d52c0de56573ba/src/precompiles/ArbAggregator.sol#L24"
href="https://github.com/OffchainLabs/nitro-contracts/blob/601afc77e5b2a2dfd6f7075f2f3a48989c0be740/src/precompiles/ArbAggregator.sol#L24"
target="_blank"
>
Interface
</a>
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro/blob/v3.5.5/precompiles/ArbAggregator.go#L35"
href="https://github.com/OffchainLabs/nitro/blob/v3.6.2/precompiles/ArbAggregator.go#L35"
target="_blank"
>
Implementation
Expand All @@ -80,15 +80,15 @@
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro-contracts/blob/780366a0c40caf694ed544a6a1d52c0de56573ba/src/precompiles/ArbAggregator.sol#L29"
href="https://github.com/OffchainLabs/nitro-contracts/blob/601afc77e5b2a2dfd6f7075f2f3a48989c0be740/src/precompiles/ArbAggregator.sol#L29"
target="_blank"
>
Interface
</a>
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro/blob/v3.5.5/precompiles/ArbAggregator.go#L40"
href="https://github.com/OffchainLabs/nitro/blob/v3.6.2/precompiles/ArbAggregator.go#L40"
target="_blank"
>
Implementation
Expand All @@ -102,15 +102,15 @@
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro-contracts/blob/780366a0c40caf694ed544a6a1d52c0de56573ba/src/precompiles/ArbAggregator.sol#L36"
href="https://github.com/OffchainLabs/nitro-contracts/blob/601afc77e5b2a2dfd6f7075f2f3a48989c0be740/src/precompiles/ArbAggregator.sol#L36"
target="_blank"
>
Interface
</a>
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro/blob/v3.5.5/precompiles/ArbAggregator.go#L63"
href="https://github.com/OffchainLabs/nitro/blob/v3.6.2/precompiles/ArbAggregator.go#L63"
target="_blank"
>
Implementation
Expand All @@ -124,15 +124,15 @@
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro-contracts/blob/780366a0c40caf694ed544a6a1d52c0de56573ba/src/precompiles/ArbAggregator.sol#L44"
href="https://github.com/OffchainLabs/nitro-contracts/blob/601afc77e5b2a2dfd6f7075f2f3a48989c0be740/src/precompiles/ArbAggregator.sol#L44"
target="_blank"
>
Interface
</a>
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro/blob/v3.5.5/precompiles/ArbAggregator.go#L72"
href="https://github.com/OffchainLabs/nitro/blob/v3.6.2/precompiles/ArbAggregator.go#L72"
target="_blank"
>
Implementation
Expand All @@ -149,15 +149,15 @@
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro-contracts/blob/780366a0c40caf694ed544a6a1d52c0de56573ba/src/precompiles/ArbAggregator.sol#L49"
href="https://github.com/OffchainLabs/nitro-contracts/blob/601afc77e5b2a2dfd6f7075f2f3a48989c0be740/src/precompiles/ArbAggregator.sol#L49"
target="_blank"
>
Interface
</a>
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro/blob/v3.5.5/precompiles/ArbAggregator.go#L95"
href="https://github.com/OffchainLabs/nitro/blob/v3.6.2/precompiles/ArbAggregator.go#L95"
target="_blank"
>
Implementation
Expand All @@ -171,15 +171,15 @@
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro-contracts/blob/780366a0c40caf694ed544a6a1d52c0de56573ba/src/precompiles/ArbAggregator.sol#L59"
href="https://github.com/OffchainLabs/nitro-contracts/blob/601afc77e5b2a2dfd6f7075f2f3a48989c0be740/src/precompiles/ArbAggregator.sol#L59"
target="_blank"
>
Interface
</a>
</td>
<td>
<a
href="https://github.com/OffchainLabs/nitro/blob/v3.5.5/precompiles/ArbAggregator.go#L102"
href="https://github.com/OffchainLabs/nitro/blob/v3.6.2/precompiles/ArbAggregator.go#L102"
target="_blank"
>
Implementation
Expand Down
Loading