Advertisement
_chalda

Solana getBlock RPC call

Nov 13th, 2024
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | Cryptocurrency | 0 0
  1. # https://solana.fm/block/301136231?cluster=mainnet-alpha
  2. curl $RPC_URL -X POST -H "Content-Type: application/json" -d '
  3. {
  4. "jsonrpc": "2.0","id":1,
  5. "method":"getBlock",
  6. "params": [
  7. 301136231,
  8. {
  9. "encoding": "json",
  10. "maxSupportedTransactionVersion":0,
  11. "transactionDetails":"none",
  12. "rewards":true
  13. }
  14. ]
  15. }
  16. ' | jq '.'
  17.  
  18. {
  19. "jsonrpc": "2.0",
  20. "result": {
  21. "blockHeight": 279650290,
  22. "blockTime": 1731495552,
  23. "blockhash": "Gh4PwGi4nbnwNEEyUaNeCytgDD7gkxEDyk5AW6VKrrEk",
  24. "parentSlot": 301136230,
  25. "previousBlockhash": "Hp7q6YQ3XkYQdYanxyWEAn1e4StJvRc7MYLCtGTR8EAS",
  26. "rewards": [
  27. {
  28. "commission": null,
  29. "lamports": 26083919,
  30. "postBalance": 6807640774,
  31. "pubkey": "GkENwt1ckLtrNe2XBkizxLo6npPPh9WZqsgeHgDGf1hK",
  32. "rewardType": "Fee"
  33. }
  34. ]
  35. },
  36. "id": 1
  37. }
  38.  
Tags: solana
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement