> ## 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 | Arc

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

Arc 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/arc_node_api/execute_transactions/eth_createAccessList.json POST /
openapi: 3.0.0
info:
  title: Chainstack Node API
  version: 1.0.0
  description: This is an API for interacting with a Chainstack node.
servers:
  - url: https://arc-testnet.core.chainstack.com/6caa7fd90475ac9214f7521dd460fa7c
security: []
paths:
  /:
    post:
      tags:
        - upload
      summary: eth_createAccessList
      operationId: eth_createAccessList
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_createAccessList
                params:
                  type: array
                  default:
                    - from: '0x5d20879655df3c1e04ab111af0009ad650e762f0'
                      to: '0x7798f2eb73c1dd8fa8086d780d5cf114a10f528e'
                      gas: '0xf4240'
                      data: 0x
                    - latest
      responses:
        '200':
          description: Returns the result of eth_createAccessList.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object
                    properties:
                      accessList:
                        type: array
                        items:
                          type: object
                      gasUsed:
                        type: string
                      error:
                        type: string
              example:
                jsonrpc: '2.0'
                id: 1
                result:
                  accessList: []
                  gasUsed: '0x5236'
                  error: execution reverted

````