# Account Proof

Represents the account and storage values, including the Merkle proof, of the specified account.

This Proof is used for the following RPC-Methods:

* [eth\_getProof](https://www.alchemy.com/docs/node/op-mainnet/op-mainnet-api-endpoints/eth-get-proof)
* [eth\_getBalance](https://www.alchemy.com/docs/node/op-mainnet/op-mainnet-api-endpoints/eth-get-balance)
* [eth\_getCode](https://www.alchemy.com/docs/node/op-mainnet/op-mainnet-api-endpoints/eth-get-code)
* [eth\_getTransactionCount](https://www.alchemy.com/docs/node/op-mainnet/op-mainnet-api-endpoints/eth-get-transaction-count)
* [eth\_getStorageAt](https://www.alchemy.com/docs/node/op-mainnet/op-mainnet-api-endpoints/eth-get-storage-at)

## OpStorageProof

Represents the storage proof of a key. The value can be taken from the last entry, which is the leaf of the proof.

The Type is defined in [src/chains/op/ssz/op\_proof\_types.h](https://github.com/corpus-core/colibri-stateless/blob/dev/src/chains/op/ssz/op_proof_types.h#L121).

```python
class OpStorageProof(Container):
    key   : Bytes32                 # the key to be proven
    proof : List [bytes_1024, 1024] # Patricia merkle proof
```

## OpAccountProof

Container type for storage proof data The main proof data for an account.

The Type is defined in [src/chains/op/ssz/op\_proof\_types.h](https://github.com/corpus-core/colibri-stateless/blob/dev/src/chains/op/ssz/op_proof_types.h#L129).

```python
class OpAccountProof(Container):
    accountProof : List [bytes_1024, 256]     # Patricia Merkle proof
    address      : Address                    # the address of the account
    storageProof : List [OpStorageProof, 256] # the storage proofs of the selected storage keys
    block_proof  : Union [                    # proof for the block header
        OpPreconf]                            # preconfirmation proof (sequencer-signed execution payload)
```

**Referenced Types**

* [OpStorageProof](#opstorageproof)
* [OpPreconf](https://corpus-core.gitbook.io/specification-colibri-stateless/specifications/op-stack/..#oppreconf)
