Skip to main content

index.getLastAccepted RPC Method

Get the most recently accepted container.

Updated on
Nov 2, 2023

index.getLastAccepted RPC Method

Parameters

encoding
String
Encoding value can only be "hex".

Returns

id
string
The container's ID.
bytes
string
The byterepresentation of the container.
timestamp
string
The time at whichthe node accepted the container.
encoding
string
Encoding is "hex" only.
index
string
How many containerswere accepted in this index before this one.
Request
1
curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro/ext/bc/C/rpc/ext/index/X/tx \
2
--data-raw '{
3
"jsonrpc":"2.0",
4
"id" :1,
5
"method" :"index.getLastAccepted",
6
"params": {
7
"encoding":"hex"
8
}
9
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free