zks_estimateGasL1ToL2 RPC Method
Parameters
from
string
REQUIRED
The address from which the transaction is sent
to
string
REQUIRED
The address to which the transaction is addressed
data
string
The data associated with the transaction
Returns
result
The estimate of the gas required for a L1 to L2 transaction
Request
1curl https://docs-demo.abstract-testnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"zks_estimateGasL1ToL2","params":[{ "from": "0x1111111111111111111111111111111111111111", "to":"0x2222222222222222222222222222222222222222", "data": "0xffffffff" } ],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free