Skip to content

Commit

Permalink
fix the broken link
Browse files Browse the repository at this point in the history
  • Loading branch information
mahsamoosavi committed Oct 18, 2023
1 parent 780c97c commit b771fc2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arbitrum-docs/devs-how-tos/how-to-estimate-gas.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ Multiplying the value obtained from `eth_estimateGas` by the L2 gas price will g

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 L2 gas price, which is available in the third result, `baseFee`.

Note that when working with L1 to L2 messages (also known as [retryable tickets](/arbos/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/${globalVars.nitroRepositorySlug}/blob/${globalVars.nitroVersionTag}/nodeInterface/NodeInterface.go#L120) to get all the gas information needed to send a succesful transaction.
Note that when working with L1 to L2 messages (also known as [retryable tickets](/arbos/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@/blob/@nitroVersionTag@/nodeInterface/NodeInterface.go#L120) to get all the gas information needed to send a succesful transaction.

## Breaking down the formula

Expand Down

0 comments on commit b771fc2

Please sign in to comment.