eth_createAccessList

Generates an access list for a transaction.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
TransactionobjectRequired

The transaction object for which to generate an access list.

Blockstring or enumRequired

The block number or tag at which to create the access list. Defaults to 'latest' if not provided.

Response

An object containing the access list and gas used for the transaction.

accessListlist of objectsOptional

The generated access list for the transaction.

errorstringOptional

Any error encountered during access list generation.

gasUsedstringOptionalformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"

The estimated gas used for the transaction with the access list, as a hexadecimal string.