curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=1 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getAccount",
"params": [
"0x8D97689C9818892B700e27F316cc3E41e17fBeb9",
"latest"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"codeHash": "0x3f30cbb24e7a53efc981dcf566da48e6e9b5418d26c4763fdb4e83e7bcd0c9c5",
"storageRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"balance": "0x38d7ea4c68000",
"nonce": "0x10"
}
}
Retrieves detailed account information for a given address at a specific block number or tag.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=1 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getAccount",
"params": [
"0x8D97689C9818892B700e27F316cc3E41e17fBeb9",
"latest"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"codeHash": "0x3f30cbb24e7a53efc981dcf566da48e6e9b5418d26c4763fdb4e83e7bcd0c9c5",
"storageRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"balance": "0x38d7ea4c68000",
"nonce": "0x10"
}
}
eth_getAccount:params[0]: The address of the account (20-byte hex string).params[1]: Block reference: block number in hex, integer, or tag (βlatestβ, βpendingβ, βsafeβ, βfinalizedβ).curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=1 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getAccount",
"params": [
"0x8D97689C9818892B700e27F316cc3E41e17fBeb9",
"latest"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"codeHash": "0x3f30cbb24e7a53efc981dcf566da48e6e9b5418d26c4763fdb4e83e7bcd0c9c5",
"storageRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"balance": "0x38d7ea4c68000",
"nonce": "0x10"
}
}
Was this page helpful?