Chain

ChainNotify

Code samples

1
# You can also use wget
2
curl -X POST https://filecoin.infura.io/#ChainNotify \
3
-H 'Content-Type: application/json' \
4
-H 'Accept: application/json'
Copied!
POST /#ChainNotify
First message is guaranteed to be of len == 1, and type == 'current'.
Body parameter
1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"method": "Filecoin.ChainNotify",
5
"params": [
6
null
7
]
8
}
Copied!

Example responses

200 Response
1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"result": [
5
{
6
"Type": "string",
7
"Val": "string"
8
}
9
]
10
}
Copied!

Responses

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

ChainHead

Code samples

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

ChainGetBlock

Code samples

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

Example responses

200 Response
1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"result": {
5
"Miner": "string",
6
"Ticket": {
7
"VRFProof": "string"
8
},
9
"ElectionProof": {
10
"WinCount": 0,
11
"VRFProof": "string"
12
},
13
"BeaconEntries": [
14
{
15
"Round": 0,
16
"Data": "string"
17
}
18
],
19
"WinPoStProof": [
20
"string"
21
],
22
"Parents": [
23
"string"
24
],
25
"ParentWeight": "string",
26
"Height": 0,
27
"ParentStateRoot": "string",
28
"ParentMessageReceipts": "string",
29
"Messages": "string",
30
"BLSAggregate": {
31
"Type": 0,
32
"Data": "string"
33
},
34
"Timestamp": 0,
35
"BlockSig": {
36
"Type": 0,
37
"Data": "string"
38
},
39
"ForkSignaling": 0,
40
"ParentBaseFee": "string"
41
}
42
}
Copied!

Responses

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

ChainGetTipSet

Code samples

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

ChainGetBlockMessages

Code samples

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

Example responses

200 Response
1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"result": {
5
"BlsMessages": [
6
"string"
7
],
8
"SecpkMessages": [
9
"string"
10
],
11
"Cids": [
12
"string"
13
]
14
}
15
}
Copied!

Responses

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

ChainGetParentReceipts

Code samples

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

Example responses

200 Response
1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"result": [
5
{
6
"ExitCode": 0,
7
"Return": "string",
8
"GasUsed": 0
9
}
10
]
11
}
Copied!

Responses

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

ChainGetParentMessages

Code samples

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

Example responses

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

Responses

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

ChainGetTipSetByHeight

Code samples

1
# You can also use wget
2
curl -X POST https://filecoin.infura.io/#ChainGetTipSetByHeight \
3
-H 'Content-Type: application/json' \
4
-H 'Accept: application/json'
Copied!
POST /#ChainGetTipSetByHeight
If there are no blocks at the specified epoch, a tipset at an earlier epoch will be returned.
Body parameter
1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"method": "Filecoin.ChainGetTipSetByHeight",
5
"params": [
6
0,
7
0
8
]
9
}
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

ChainReadObj

Code samples

1
# You can also use wget
2
curl -X POST https://filecoin.infura.io/#ChainReadObj \
3
-H 'Content-Type: application/json' \
4
-H 'Accept: application/json'
Copied!
POST /#ChainReadObj
blockstore and returns raw bytes.
Body parameter
1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"method": "Filecoin.ChainReadObj",
5
"params": [
6
"string"
7
]
8
}
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

ChainHasObj

Code samples

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

Example responses

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

Responses

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

ChainStatObj

Code samples

1
# You can also use wget
2
curl -X POST https://filecoin.infura.io/#ChainStatObj \
3
-H 'Content-Type: application/json' \
4
-H 'Accept: application/json'
Copied!
POST /#ChainStatObj
If 'base' is also specified, then the returned stat will be a diff between the two objects.
Body parameter
1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"method": "Filecoin.ChainStatObj",
5
"params": [
6
"string",
7
"string"
8
]
9
}
Copied!

Example responses

200 Response
1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"result": {
5
"Size": 0,
6
"Links": 0
7
}
8
}
Copied!

Responses

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

ChainGetGenesis

Code samples

1
# You can also use wget
2
curl -X POST https://filecoin.infura.io/#ChainGetGenesis \
3
-H 'Content-Type: application/json' \
4
-H 'Accept: application/json'
Copied!
POST /#ChainGetGenesis
ChainTipSetWeight computes weight for the specified tipset.
Body parameter
1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"method": "Filecoin.ChainGetGenesis",
5
"params": [
6
null
7
]
8
}
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
To perform this operation, you must be authenticated by means of one of the following methods: basicAuth

ChainTipSetWeight

Code samples

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

ChainGetMessage

Code samples

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

ChainGetPath

Code samples

1
# You can also use wget
2
curl -X POST https://filecoin.infura.io/#ChainGetPath \
3
-H 'Content-Type: application/json' \
4
-H 'Accept: application/json'
Copied!
POST /#ChainGetPath
one tipset to another, for example:“ to ^ from tAA ^ ^ tBA tAB ^---*--^ ^ tRR“ Would return [revert(tBA), apply(tAB), apply(tAA)]
Body parameter
1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"method": "Filecoin.ChainGetPath",
5
"params": [
6
"string",
7
"string"
8
]
9
}
Copied!

Example responses

200 Response
1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"result": [
5
{
6
"Type": "string",
7
"Val": "string"
8
}
9
]
10
}
Copied!

Responses

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