Gas

GasEstimateFeeCap

Code samples

1
# You can also use wget
2
curl -X POST https://filecoin.infura.io/#GasEstimateFeeCap \
3
-H 'Content-Type: application/json' \
4
-H 'Accept: application/json'
Copied!
POST /#GasEstimateFeeCap
Body parameter
1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"method": "Filecoin.GasEstimateFeeCap",
5
"params": [
6
"string",
7
"string",
8
"string"
9
]
10
}
Copied!

Example responses

200 Response
1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"result": "string"
5
}
Copied!

Responses

Status
Meaning
Description
Schema
200
OK
Success
Inline
429
Rate Limit Exceeded
RateLimitedResponse

GasEstimateGasLimit

Code samples

1
# You can also use wget
2
curl -X POST https://filecoin.infura.io/#GasEstimateGasLimit \
3
-H 'Content-Type: application/json' \
4
-H 'Accept: application/json'
Copied!
POST /#GasEstimateGasLimit
It fails if message fails to execute.
Body parameter
1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"method": "Filecoin.GasEstimateGasLimit",
5
"params": [
6
"string",
7
"string"
8
]
9
}
Copied!

Example responses

200 Response
1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"result": 0
5
}
Copied!

Responses

Status
Meaning
Description
Schema
200
OK
Success
Inline
429
Rate Limit Exceeded
RateLimitedResponse

GasEstimateGasPremium

Code samples

1
# You can also use wget
2
curl -X POST https://filecoin.infura.io/#GasEstimateGasPremium \
3
-H 'Content-Type: application/json' \
4
-H 'Accept: application/json'
Copied!
POST /#GasEstimateGasPremium
Body parameter
1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"method": "Filecoin.GasEstimateGasPremium",
5
"params": [
6
0,
7
0,
8
0,
9
0
10
]
11
}
Copied!

Example responses

200 Response
1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"result": "string"
5
}
Copied!

Responses

Status
Meaning
Description
Schema
200
OK
Success
Inline
429
Rate Limit Exceeded
RateLimitedResponse

GasEstimateMessageGas

Code samples

1
# You can also use wget
2
curl -X POST https://filecoin.infura.io/#GasEstimateMessageGas \
3
-H 'Content-Type: application/json' \
4
-H 'Accept: application/json'
Copied!
POST /#GasEstimateMessageGas
Body parameter
1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"method": "Filecoin.GasEstimateMessageGas",
5
"params": [
6
"string",
7
"string",
8
"string"
9
]
10
}
Copied!

Example responses

200 Response
1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"result": "string"
5
}
Copied!

Responses

Status
Meaning
Description
Schema
200
OK
Success
Inline
429
Rate Limit Exceeded
RateLimitedResponse
Last modified 3mo ago