Estimates gas for a given on-ledger ISC request
POST/v1/chains/:chainID/estimategas-onledger
Estimates gas for a given on-ledger ISC request
Request
Path Parameters
chainID stringrequired
ChainID (Bech32)
- application/json
Body
required
Request
outputBytes stringrequired
Serialized Output (Hex)
Responses
- 200
ReceiptResponse
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
blockIndex int32required
Possible values: >= 1
errorMessage string
gasBudget stringrequired
The gas budget (uint64 as string)
gasBurnLog BurnRecord[]required
code int32required
gasBurned int64required
gasBurned stringrequired
The burned gas (uint64 as string)
gasFeeCharged stringrequired
The charged gas fee (uint64 as string)
rawError UnresolvedVMErrorJSON
code string
params string[]
request RequestJSONrequired
allowance AssetsJSONrequired
baseTokens stringrequired
The base tokens (uint64 as string)
nativeTokens NativeTokenJSON[]required
amount stringrequired
id stringrequired
nfts string[]required
callTarget CallTargetJSONrequired
contractHName stringrequired
The contract name as HName (Hex)
functionHName stringrequired
The function name as HName (Hex)
fungibleTokens AssetsJSONrequired
baseTokens stringrequired
The base tokens (uint64 as string)
nativeTokens NativeTokenJSON[]required
amount stringrequired
id stringrequired
nfts string[]required
gasBudget stringrequired
The gas budget (uint64 as string)
isEVM booleanrequired
isOffLedger booleanrequired
nft NFTJSONrequired
id stringrequired
issuer stringrequired
metadata stringrequired
owner stringrequired
params JSONDictrequired
Items Item[]
key stringrequired
key (hex-encoded)
value stringrequired
value (hex-encoded)
requestId stringrequired
senderAccount stringrequired
targetAddress stringrequired
requestIndex int32required
Possible values: >= 1
storageDepositCharged stringrequired
Storage deposit charged (uint64 as string)
{
"gasBurnLog": [
{
"code": 6,
"gasBurned": 1
},
{
"code": 6,
"gasBurned": 1
}
],
"request": {
"fungibleTokens": {
"nfts": [
"nfts",
"nfts"
],
"baseTokens": "baseTokens",
"nativeTokens": [
{
"amount": "amount",
"id": "id"
},
{
"amount": "amount",
"id": "id"
}
]
},
"senderAccount": "senderAccount",
"isOffLedger": true,
"requestId": "requestId",
"callTarget": {
"contractHName": "contractHName",
"functionHName": "functionHName"
},
"gasBudget": "gasBudget",
"targetAddress": "targetAddress",
"allowance": {
"nfts": [
"nfts",
"nfts"
],
"baseTokens": "baseTokens",
"nativeTokens": [
{
"amount": "amount",
"id": "id"
},
{
"amount": "amount",
"id": "id"
}
]
},
"params": {
"Items": [
{
"value": "value",
"key": "key"
},
{
"value": "value",
"key": "key"
}
]
},
"nft": {
"owner": "owner",
"metadata": "metadata",
"id": "id",
"issuer": "issuer"
},
"isEVM": true
},
"blockIndex": 1,
"rawError": {
"code": "code",
"params": [
"params",
"params"
]
},
"requestIndex": 1,
"storageDepositCharged": "storageDepositCharged",
"gasFeeCharged": "gasFeeCharged",
"errorMessage": "errorMessage",
"gasBudget": "gasBudget",
"gasBurned": "gasBurned"
}
Loading...