> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# eth_createAccessList | Tempo

> Tempo API method that creates an EIP-2930 access list for a transaction. The access list identifies storage slots and addresses the transaction will access.

Tempo API method that creates an EIP-2930 access list for a transaction. The access list identifies storage slots and addresses the transaction will access, which can be used to optimize gas costs.

## Parameters

* `transactionObject` — the transaction call object:
  * `from` — (optional) sender address
  * `to` — recipient address
  * `gas` — (optional) gas limit
  * `gasPrice` — (optional) gas price
  * `value` — (optional) value to send
  * `data` — (optional) call data
* `blockParameter` — the block number (hex) or tag (`latest`, `earliest`, `pending`)

## Response

* `result` — an object containing:
  * `accessList` — an array of access list entries (address and storage keys)
  * `gasUsed` — the gas used by the transaction with the access list applied

## `eth_createAccessList` code examples

<CodeGroup>
  ```bash cURL theme={"system"}
  curl -X POST "CHAINSTACK_NODE_URL" \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc": "2.0", "method": "eth_createAccessList", "params": [{"to": "0x20c0000000000000000000000000000000000000", "data": "0x95d89b41"}, "latest"], "id": 1}'
  ```
</CodeGroup>


## OpenAPI

````yaml openapi/tempo_node_api/transaction_info/eth_createAccessList.json POST /
openapi: 3.0.0
info:
  title: eth_createAccessList Tempo example
  version: 1.0.0
  description: This is an API example for eth_createAccessList for Tempo.
servers:
  - url: https://tempo-mainnet.core.chainstack.com/c3ce2925b51f1ed18719fe8a23bbdccf
security: []
paths:
  /:
    post:
      tags:
        - Transaction info
      summary: eth_createAccessList
      operationId: tempo-eth-createAccessList
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_createAccessList
                params:
                  type: array
                  items: {}
                  default:
                    - to: '0x20c0000000000000000000000000000000000000'
                      data: '0x95d89b41'
                    - latest
                  description: Method parameters
                id:
                  type: integer
                  default: 1
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    description: Method result

````