# Citrea

> Pages under Citrea in the Alchemy Docs.

## Pages

- [Quickstart](https://www.alchemy.com/docs/reference/citrea-api-quickstart.md): How to get started building on Citrea using Alchemy
- [Citrea API Overview](https://www.alchemy.com/docs/citrea/citrea-api-overview.md): Overview of available Citrea API methods
- [citrea_getL2StatusHeightsByL1Height](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/citrea-get-l-2-status-heights-by-l-1-height.md): Returns committed and proven L2 heights as of a given Bitcoin block.
- [citrea_getLastCommittedL2Height](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/citrea-get-last-committed-l-2-height.md): Returns the latest L2 block height that has been committed to Bitcoin via sequencer commitment.
- [citrea_getLastProvenL2Height](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/citrea-get-last-proven-l-2-height.md): Returns the latest L2 block height that has been proven on Bitcoin with a validity proof.
- [citrea_sendRawDepositTransaction](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/citrea-send-raw-deposit-transaction.md): Submits a raw deposit transaction to the Citrea sequencer. The node first simulates the
deposit; if valid, it is queued for inclusion.

- [citrea_syncStatus](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/citrea-sync-status.md): Returns the current synchronization status of the local Citrea node for both L1 (Bitcoin) and L2 (Citrea).
The response reports either { Synced:  } or { Syncing: { headBlockNumber, syncedBlockNumber } }
for each layer.

- [eth_blockNumber](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-block-number.md): Returns the number of the most recent block.
- [eth_call](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-call.md): Executes a new message call immediately without creating a transaction on the blockchain.
- [eth_chainId](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-chain-id.md): Returns the chain ID of the current network as a hexadecimal string.
- [eth_createAccessList](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-create-access-list.md): Generates an access list for a transaction.
- [eth_estimateDiffSize](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-estimate-diff-size.md): Returns estimated diff size and gas consumption for a potential transaction.
- [eth_estimateGas](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-estimate-gas.md): Generates and returns an estimate of how much gas is necessary to allow the transaction to complete.
- [eth_feeHistory](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-fee-history.md): Returns historical base fee per gas and priority fee per gas data for a range of blocks.
- [eth_fillTransaction](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-fill-transaction.md): Fills in default values for a transaction object. This method populates missing fields such as gas, gasPrice, nonce, and chainId based on the current network state and transaction parameters. It returns both the filled transaction object and the RLP-encoded raw transaction data.

This is useful for preparing transactions before signing, as it ensures all required fields are present with appropriate values.

- [eth_gasPrice](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-gas-price.md): Returns the current price per gas in wei.
- [eth_getAccount](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-get-account.md): Retrieve account details (code hash, storage root, balance, nonce) for a given address at a specified block number or tag.

- [eth_getBalance](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-get-balance.md): Returns the balance of the account of a given address.
- [eth_getBlockByHash](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-get-block-by-hash.md): Returns information about a block by its hash.
- [eth_getBlockByNumber](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-get-block-by-number.md): Returns information about a block by its number.
- [eth_getBlockReceipts](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-get-block-receipts.md): Returns the receipts of a block by number or hash.
- [eth_getBlockTransactionCountByHash](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-get-block-transaction-count-by-hash.md): Returns the number of transactions in a block from a block matching the given block hash.
- [eth_getBlockTransactionCountByNumber](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-get-block-transaction-count-by-number.md): Returns the number of transactions in a block matching the given block number.
- [eth_getCode](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-get-code.md): Returns the code at a given address.
- [eth_getFilterChanges](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-get-filter-changes.md): Polls for changes in the filter with the given ID (created using eth_newFilter). Returns an array of logs which occurred since the last poll.
- [eth_getFilterLogs](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-get-filter-logs.md): Returns an array of all logs matching the filter with the given ID (created using eth_newFilter).
- [eth_getLogs](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-get-logs.md): Returns an array of all logs matching the specified filter.
- [eth_getProof](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-get-proof.md): Returns the Merkle proof for a given account and optionally some storage keys.
- [eth_getRawTransactionByHash](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-get-raw-transaction-by-hash.md): Returns the raw transaction data (RLP-encoded) for a transaction by its hash.
- [eth_getStorageAt](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-get-storage-at.md): Returns the value from a storage position at a given address.
- [eth_getTransactionByBlockHashAndIndex](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-get-transaction-by-block-hash-and-index.md): Returns information about a transaction by block hash and transaction index position.
- [eth_getTransactionByBlockNumberAndIndex](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-get-transaction-by-block-number-and-index.md): Returns information about a transaction by block number and transaction index position.
- [eth_getTransactionByHash](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-get-transaction-by-hash.md): Returns information about a transaction requested by transaction hash.
- [eth_getTransactionCount](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-get-transaction-count.md): Returns the number of transactions sent from an address.
- [eth_getTransactionReceipt](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-get-transaction-receipt.md): Returns the receipt of a transaction by transaction hash.
- [eth_getUncleByBlockHashAndIndex](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-get-uncle-by-block-hash-and-index.md): Returns information about an uncle of a block by hash and uncle index.
- [eth_maxPriorityFeePerGas](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-max-priority-fee-per-gas.md): Returns the current maximum priority fee per gas in wei.
- [eth_newBlockFilter](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-new-block-filter.md): Creates a filter in the node to notify when new blocks arrive.
- [eth_newFilter](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-new-filter.md): Creates a filter object based on filter options to notify when state changes (logs).
- [eth_sendRawTransaction](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-send-raw-transaction.md): Submits a raw transaction to the network.
- [eth_submitWork](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-submit-work.md): Submit a proof-of-work solution (Ethash) consisting of a nonce, the header PoW hash, and the mix digest. Not supported on post-Merge Ethereum clients; many nodes will return JSON-RPC error -32601 (method not found).

- [eth_subscribe](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-subscribe.md): Subscribe to Ethereum events via WebSocket (WSS required)
- [eth_syncing](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-syncing.md): Returns an object with data about the sync status or false if not syncing.
- [eth_uninstallFilter](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-uninstall-filter.md): Uninstalls a filter with the given ID.
- [eth_unsubscribe](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/eth-unsubscribe.md): Cancel a WebSocket subscription (WSS required)
- [ledger_getHeadL2Block](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/ledger-get-head-l-2-block.md): Returns the latest (head) L2 block.
- [ledger_getHeadL2BlockHeight](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/ledger-get-head-l-2-block-height.md): Returns the block number of the latest L2 block.
- [ledger_getL2BlockByHash](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/ledger-get-l-2-block-by-hash.md): Returns a complete L2 block by its block hash.
- [ledger_getL2BlockByNumber](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/ledger-get-l-2-block-by-number.md): Returns a complete L2 block by its block number.
- [ledger_getL2BlockRange](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/ledger-get-l-2-block-range.md): Returns all L2 blocks in the inclusive range [start, end].
- [ledger_getL2GenesisStateRoot](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/ledger-get-l-2-genesis-state-root.md): Returns the 32-byte genesis state root for L2.
- [ledger_getLastScannedL1Height](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/ledger-get-last-scanned-l-1-height.md): Returns the highest L1 block number the node has scanned so far.
- [ledger_getLastVerifiedBatchProof](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/ledger-get-last-verified-batch-proof.md): Returns the most recent verified batch proof.
- [ledger_getSequencerCommitmentByIndex](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/ledger-get-sequencer-commitment-by-index.md): Returns a sequencer commitment by its global index.
- [ledger_getSequencerCommitmentsOnSlotByHash](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/ledger-get-sequencer-commitments-on-slot-by-hash.md): Returns sequencer commitment(s) found in the DA slot identified by its L1 block hash.
- [ledger_getSequencerCommitmentsOnSlotByNumber](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/ledger-get-sequencer-commitments-on-slot-by-number.md): Returns sequencer commitment(s) found in the specified DA slot height.
- [ledger_getVerifiedBatchProofsBySlotHeight](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/ledger-get-verified-batch-proofs-by-slot-height.md): Returns verified ZK batch proof(s) for the specified DA slot height.
- [net_listening](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/net-listening.md): Returns true if the client is actively listening for network connections.
- [net_version](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/net-version.md): Returns the network ID that the client is connected to.
- [web3_clientVersion](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/web-3-client-version.md): Returns the current client version.
- [web3_sha3](https://www.alchemy.com/docs/chains/citrea/citrea-api-endpoints/web-3-sha-3.md): Returns Keccak-256 (not the standardized SHA3-256) hash of the given data.
- [FAQ](https://www.alchemy.com/docs/reference/citrea-api-faq.md): Frequently asked questions about the Citrea API
