Méthode RPC getBlockProduction
Renvoie les informations récentes sur la production de blocs de l'epoch actuelle ou précédente.
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getBlockProduction",> "params": [> {> "commitment": "finalized"> }> ]> }> '
params
objectoptional
Objet de configuration
result
Response
{"jsonrpc": "2.0","result": {"context": {"slot": 9887},"value": {"byIdentity": {"85iYT5RuzRTDgjyRa3cP8SYhM2j21fj7NhfJ3peu1DPr": [9888, 9886]},"range": {"firstSlot": 0,"lastSlot": 9887}}},"id": 1}
object
Le résultat sera un objet JSON RpcResponse avec une valeur égale à :
Is this page helpful?