Parameters
chainId
string
default:"11297108109"
required
Unique identifier for a blockchain network.
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"eth_getProof"
required
JSON-RPC method name.
Parameters: [address, storageKeys, blockParameter]Positional parameters for eth_getProof:params[0]: The 20-byte address to check for balance, nonce, and storage.params[1]: Array of 32-byte storage keys (hex) to be included in the proof.params[2]: Block number or tag (“latest”, “earliest”, “pending”, “safe”, “finalized”).
Returns
Account details and Merkle proofs for storage verification.
The address of the account.
Hex-encoded balance of the account in wei.
Transaction count (nonce) of the account.
32-byte hash of the code of the account.
SHA3 hash of the storage root.
Array of RLP-encoded nodes forming the Merkle proof for the account.
Array of storage entries with their Merkle proofs.
Hex-encoded value stored at the key.
RLP-encoded Merkle proof nodes for this storage key.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=11297108109 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getProof",
"params": [
"0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842",
[
"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"
],
"latest"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"address": "0x7f0d15c7faae65896648c8273b6d7e43f58fa842",
"balance": "0x0",
"nonce": "0x0",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"storageHash": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"accountProof": [
"0xf90211a0...",
"0xf90151a0..."
],
"storageProof": [
{
"key": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"value": "0x0",
"proof": [
"..."
]
}
]
}
}