Skip to main content
POST
/
api
/
chain
/
evm
/
estimate-l2-fee
EVM fee estimate for L2 chains
curl --request POST \
  --url https://api.walletsuite.io/api/chain/evm/estimate-l2-fee \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "chain": "<string>",
  "from": "<string>",
  "to": "<string>",
  "valueWei": 123,
  "data": "<string>"
}
'
{
  "ok": true,
  "code": "<string>",
  "message": "<string>",
  "data": {
    "chain": "<string>",
    "l1FeeWei": 123,
    "currency": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

API key provided by WalletSuite team

Body

application/json
chain
string
required
from
string
required
to
string
required
valueWei
integer
required
data
string

Response

200 - */*

OK

ok
boolean
required
code
string
required
message
string
required
data
object