you_getProof

描述:根据 address,存储值返回包含 Merkle-proof 的指定账户

parameter

数据类型 备注
String, 20 字节 账户地址
ARRAY, 32 字节 存储值数组
String 整数块编号,或字符串"latest"表示最后挖出的块,"pending"或"earliest"

return

Object - A account object:

参数 数据类型 备注
balance String 余额
codeHash String, 32 字节 账户的 hash
nonce String 本次交易之前发送方已经生成的交易数量
storageHash String, 32 字节 proof的sha3
accountProof ARRAY MerkleTree 节点数组
storageProof ARRAY 请求的存储入口对象
address String, 20 字节 账户地址

example

Request:

curl -X POST \
  http://127.0.0.1:8283 \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "you_getProof", "params": ["0xcF9F5007AA1A9ae7b8092DBE3E12B3B97fD5b18D",["0x000000000000000000000000000000000000000000000001bc16d674ec800000"],"latest"]}'

Response:

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "address": "0xcF9F5007AA1A9ae7b8092DBE3E12B3B97fD5b18D",
        "accountProof": [
            "0xf9019180a07e1bf20779ff0f9a30bacdbafcd10b617fbacfb7fcda9bd1e19afcb9fb52083ea022011bf7f00837d317f922319dccac3c15dba7ea7ea877b4fc965d62f4d0e72aa089b4f59bc32b94dce8f9bcacea3ce1a2728f8e6e5c19b11b6ae6210d2533612da07df96fc424e76c1b568aa7f19243a895e24541dd4d92a3584ebe8aa76053b19ba0ee1611cc804aa0348b69b510c64559471d097f67b79245f22123826847148e34a08e1a94a2cc1c617b897e4fee3480052b8bf1034cd1513ccdc1eff7a440bbc351a0d40a800c4a6cf52e07100dc8131866b5c30f37e94fb49d077cbe3289a4181263a09e7e271d11d1612bbae8f0551d0e96e560b163caf32716c3062ab5925f4944e4a02021369338fcf441e335881cdaada416986fa462fbdc1473d8b263315e0435f7a0c2f8390151a58741766c70eae11fdd494e9a5516a7135ecfffc3783e472768468080a0bb0c2c1b6355396971ece4542db1a0fa4e647e38c2d137948da3396631b8b64aa05e66b74e177195e32141febc12225d07ca3d5ece3685c5a9fd9b27c24f91b9228080",
            "0xf851808080808080a036c3aa8b9047d8163cf9360358abe0836e202b89e89c2c74ea74a2ebc304295980a004e9dd863007dfe35fdf193d970b2de5848f3994793595ef552334b1147db4588080808080808080",
            "0xf869a020cc01357c2906edf4ff129bf3088758966f05537eb7a6c11d3991bc9fae7a9fb846f8440180a0cf33dd47a1f6955bdc9067509064fe4cc49425753a525007bd09ef4401e0a22da036254c55e9dcf604b0fd844f1666b5693dea91c9f8ebce212c373a865caaafa4"
        ],
        "balance": "0x0",
        "codeHash": "0x36254c55e9dcf604b0fd844f1666b5693dea91c9f8ebce212c373a865caaafa4",
        "nonce": "0x1",
        "storageHash": "0xcf33dd47a1f6955bdc9067509064fe4cc49425753a525007bd09ef4401e0a22d",
        "storageProof": [
            {
                "key": "0x000000000000000000000000000000000000000000000001bc16d674ec800000",
                "value": "0x0",
                "proof": [
                    "0xf8d1a078df62882b0dce3676a7236652c71cfdc7aa55749266c8cee0a52025a388c874a0d216986ee3ad3063e4a91a475e70c874d0ce9f72de815ab8dd660ca0fef1d53ba0ea6c0b9f698c5fb75bfddf731b7890d57ab2e9f1b1e0d5d8916368ca66ff2bbf80808080a08641515cc69adb0294629068b90b6204394f24c9deb768f0fdc3fbd98283796d80808080a0f35d96f8742e8e96eb27e184662a0c9525e7bd12493c9a4d37c331a1557c48ed8080a0bd290d728e23570bffc0a4dc2472e3e388b84344bff7c05daa4d38294186e70980"
                ]
            }
        ]
    }
}