eth_getAccount
Returns account information including balance, nonce, code hash, and storage hash for a given address at a specified block.
Parameters
Returns
Request
{
"jsonrpc": "2.0",
"method": "eth_getAccount",
"params": ["0x407d73d8a49eeb85d32cf465507dd71d507100c1", "latest"],
"id": 1
}
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"balance": "0xde0b6b3a7640000",
"nonce": "0x1",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"storageHash": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"
}
}
Last updated