Sync

SyncState

Code samples

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

Example responses

200 Response
1
{
2
"id": 0,
3
"jsonrpc": "2.0",
4
"result": {
5
"ActiveSyncs": [
6
{
7
"WorkerID": 0,
8
"Base": "string",
9
"Target": "string",
10
"Stage": 0,
11
"Height": 0,
12
"Start": "string",
13
"End": "string",
14
"Message": "string"
15
}
16
],
17
"VMApplied": 0
18
}
19
}
Copied!

Responses

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

SyncIncomingBlocks

Code samples

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