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

# eth_createAccessList

> Creates an EIP-2930 access list that specifies which addresses and storage keys a transaction will access, helping optimize gas usage and reduce out-of-gas errors.

### Parameters

**chainId** `string` *required* (default: 10)

Unique identifier for a blockchain network.

**id** `number` *required* (default: 1)

Request identifier used to match responses.

**jsonrpc** `string` *required* (default: 2.0)

JSON-RPC version.

**method** `string` *required* (default: eth\_createAccessList)

JSON-RPC method name.

**params** `object` *required*

Parameters: \[transaction call object, block identifier]

Positional parameters for `eth_createAccessList`:

<ul>
  <li>`params[0]`: Transaction call object used to simulate the access list.</li>
  <li>`params[1]`: Block identifier: number, block hash, or tag ("latest", "earliest", "pending", "safe", or "finalized").</li>
</ul>

### Returns

**result** `object`

Access list and estimated gas usage.

**properties**

**accessList** `array`

List of addresses and storage keys accessed.

**items**

**items\[]** `object`

**properties**

**address** `string`

Hex-encoded address accessed.

**storageKeys** `array`

List of accessed storage keys.

**items**

**items\[]** `string`

**gasUsed** `string`

Estimated gas usage with the generated access list (hex).

```bash Curl theme={null}
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=10 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "eth_createAccessList",
    "params": [
      {
        "from": "0xaeA8F8f781326bfE6A7683C2BD48Dd6AA4d3Ba63",
        "to": "0xa02457e5dfd32bda5fc7e1f1b008aa5979568150",
        "data": "0x608060806080608155"
      },
      "pending"
    ]
  }'
```

```json Success theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "accessList": [
      {
        "address": "0xa02457e5dfd32bda5fc7e1f1b008aa5979568150",
        "storageKeys": [
          "..."
        ]
      }
    ],
    "gasUsed": "0x125f8"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.