eth_getProof - SEI
Example code for the eth_getProof JSON-RPC method. Complete guide on how to use eth_getProof JSON-RPC in GetBlock Web3 documentation.
Parameters
Parameter
Type
Description
Request
curl --location 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getProof",
"params": ["0x742d35Cc6634C0532925a3b844Bc9e7595f5bE21", ["0x0"], "latest"],
"id": "getblock.io"
}'import axios from 'axios';
const url = 'https://go.getblock.io/<ACCESS-TOKEN>/';
const payload = {
jsonrpc: '2.0',
method: 'eth_getProof',
params: ["0x742d35Cc6634C0532925a3b844Bc9e7595f5bE21", ["0x0"], "latest"],
id: 'getblock.io'
};
axios.post(url, payload, {
headers: { 'Content-Type': 'application/json' }
})
.then(response => console.log(response.data))
.catch(error => console.error(error));Response
{
"jsonrpc": "2.0",
"id": "getblock.io",
"result": {
"address": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE21",
"accountProof": ["0x..."],
"balance": "0x2386f26fc10000",
"codeHash": "0xc5d2...",
"nonce": "0x1",
"storageHash": "0x56e8...",
"storageProof": []
}
}Response Parameters
Field
Type
Description
Use Case
Error Handling
Error Code
Message
Description
Web3 Integration
Last updated
Was this helpful?