ZKSync API
zks_getProof
Overview
Ethereum API
- POSTeth_chainId
- POSTeth_call
- POSTeth_estimateGas
- POSTeth_gasPrice
- POSTeth_newFilter
- POSTeth_newBlockFilter
- POSTeth_uninstallFilter
- POSTeth_newPendingTransactionFilter
- POSTeth_getLogs
- POSTeth_getFilterLogs
- POSTeth_getFilterChanges
- POSTeth_getBalance
- POSTweb3_clientVersion
- POSTeth_getBlockByNumber
- POSTeth_getBlockByHash
- POSTeth_getBlockTransactionCountByNumber
- POSTeth_getBlockReceipts
- POSTeth_getBlockTransactionCountByHash
- POSTeth_getCode
- POSTeth_getStorageAt
- POSTeth_getTransactionCount
- POSTeth_sendRawTransaction
- POSTeth_accounts
- POSTeth_feeHistory
ZKSync API
- POSTzks_estimateFee
- POSTzks_estimateGasL1ToL2
- POSTzks_getBridgehubContract
- POSTzks_getMainContract
- POSTzks_getTestnetPaymaster
- POSTzks_getL1BatchBlockRange
- POSTzks_getL1BatchDetails
- POSTzks_L1BatchNumber
- POSTzks_L1ChainId
- POSTzks_getConfirmedTokens
- POSTzks_getAllAccountBalances
- POSTzks_getTransactionDetails
- POSTzks_getBlockDetails
- POSTzks_getBridgeContracts
- POSTzks_getBaseTokenL1Address
- POSTzks_getL2ToL1MsgProof
- POSTzks_getL2ToL1LogProof
- POSTzks_getRawBlockTransactions
- POSTzks_getBytecodeByHash
- POSTzks_getL1GasPrice
- POSTzks_getFeeParams
- POSTzks_getProtocolVersion
- POSTzks_getProof
- POSTzks_sendRawTransactionWithDetailedOutput
Debug API
PubSub API
ZKSync API
zks_getProof
Generates Merkle proofs for one or more storage values associated with a specific account, accompanied by a proof of their authenticity
POST
/
zks_getProof
curl --request POST \
--url https://api.mainnet.abs.xyz/zks_getProof \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "zks_getProof",
"params": [
"0x0000000000000000000000000000000000008003",
[
"0x8b65c0cf1012ea9f393197eb24619fd814379b298b238285649e14f936a5eb12"
],
354895
]
}'
{
"jsonrpc": "2.0",
"result": {
"address": "0x0000000000000000000000000000000000008003",
"storageProof": [
{
"key": "0x8b65c0cf1012ea9f393197eb24619fd814379b298b238285649e14f936a5eb12",
"proof": [
"0xe3e8e49a998b3abf8926f62a5a832d829aadc1b7e059f1ea59ffbab8e11edfb7"
]
}
]
},
"id": 1
}
Body
application/json
Response
200 - application/json
Returns the account details and proofs for storage keys
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.mainnet.abs.xyz/zks_getProof \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "zks_getProof",
"params": [
"0x0000000000000000000000000000000000008003",
[
"0x8b65c0cf1012ea9f393197eb24619fd814379b298b238285649e14f936a5eb12"
],
354895
]
}'
{
"jsonrpc": "2.0",
"result": {
"address": "0x0000000000000000000000000000000000008003",
"storageProof": [
{
"key": "0x8b65c0cf1012ea9f393197eb24619fd814379b298b238285649e14f936a5eb12",
"proof": [
"0xe3e8e49a998b3abf8926f62a5a832d829aadc1b7e059f1ea59ffbab8e11edfb7"
]
}
]
},
"id": 1
}