# eth\_createAccessList

### Parameters

1. `Object` - The transaction call object with the following:
   * `from`(optional): the address the transaction is sent from.
   * `to`(optional): the address the transaction is sent to.
   * `gas`(optional): Integer of the gas provided for the transaction execution. eth\_call consumes zero gas, but this parameter may be needed by some executions.
   * `gasPrice`(optional): Integer of the gasPrice used for each paid gas.
   * `value`(optional): Integer of the value sent with this transaction.
   * `data`(optional): Hash of the method signature and encoded parameters. For details see [Ethereum Contract ABI in the Solidity documentation](https://docs.soliditylang.org/en/latest/abi-spec.html).
2. `Quantity` or `tag` - choose 1 of the following options:
   * A hexadecimal block number.
   * `"earliest"` - the earliest/genesis block.
   * `"latest"` - the latest mined block.
   * `"safe"` - the latest safe head block.
   * `"finalized"` - the latest finalized block.
   * `"pending"` - the pending state/transactions.

#### Sample Request

{% code overflow="wrap" %}

```
curl https://lb.nodies.app/v1/<INSERT URL> \
   -H "x-api-key: <API-KEY>" \
   -X POST \
   -H "Content-Type: application/json" \
   -d '{ 
  "jsonrpc": "2.0",
  "method": "eth_createAccessList",
  "params": [
    {
      "from": "0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326",
      "data": "0x608060806080608155"
    },
    "pending"
  ],
  "id": 1
}'

```

{% endcode %}

#### Sample Response

{% code overflow="wrap" %}

```
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "accessList": [
      {
        "address": "0xac77483de5c6363db08ce0665ffad8673116ab90",
        "storageKeys": ["0x0000000000000000000000000000000000000000000000000000000000000081"]
      }
    ],
    "gasUsed": "0x12e92"
  }
}
```

{% endcode %}
