curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=solana \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getBlockProduction",
"params": [
{}
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"context": {
"slot": 9887
},
"value": {
"byIdentity": {
"85iYT5RuzRTDgjyRa3cP8SYhM2j21fj7NhfJ3peu1DPr": [
"..."
]
},
"range": {
"firstSlot": 0,
"lastSlot": 9887
}
}
}
}
Returns recent block production information from the current or previous epoch.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=solana \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getBlockProduction",
"params": [
{}
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"context": {
"slot": 9887
},
"value": {
"byIdentity": {
"85iYT5RuzRTDgjyRa3cP8SYhM2j21fj7NhfJ3peu1DPr": [
"..."
]
},
"range": {
"firstSlot": 0,
"lastSlot": 9887
}
}
}
}
getBlockProduction:params[]: Optional configuration object for block production query.curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=solana \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getBlockProduction",
"params": [
{}
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"context": {
"slot": 9887
},
"value": {
"byIdentity": {
"85iYT5RuzRTDgjyRa3cP8SYhM2j21fj7NhfJ3peu1DPr": [
"..."
]
},
"range": {
"firstSlot": 0,
"lastSlot": 9887
}
}
}
}
Was this page helpful?