cURL
curl --request POST \ --url https://devnet-router.magicblock.app/ \ --header 'Content-Type: application/json' \ --data ' { "jsonrpc": "2.0", "id": 1, "method": "getBlockhashForAccounts", "params": [ [ "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU", "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM" ] ] } '
{ "jsonrpc": "2.0", "id": 1, "result": { "blockhash": "9tJWqpCLuFZ8PWQZJaYqydTXzhTCNmrtGraG2wyZXrP7", "lastValidBlockHeight": 399468682 } }
Get blockhash for multiple account addresses.
2.0
getBlockhashForAccounts
Single account-address array argument
1
Array of account addresses (max 100)
1 - 100
Successful response
Show child attributes
Was this page helpful?