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

# eth_createAccessList

> Call eth_createAccessList on Goldsky Edge RPC to build an EIP-2930 access list of addresses and storage keys a transaction is expected to touch.

## Parameters

<ParamField body="transaction" type="object" required>
  Transaction call object
</ParamField>

<ParamField body="blockNumber" type="string">
  Block number (hex), or `latest`, `earliest`, `pending`
</ParamField>

## Returns

<ParamField body="accessList" type="object">
  Access list and gas used
</ParamField>

## Example

<CodeGroup>
  ```bash cURL theme={"dark"}
  curl -X POST "https://edge.goldsky.com/standard/evm/1?key=demo" \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc": "2.0", "method": "eth_createAccessList", "params": [{"to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "data": "0x70a08231000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045"}, "latest"], "id": 1}'
  ```

  ```javascript JavaScript theme={"dark"}
  const response = await fetch('https://edge.goldsky.com/standard/evm/1?key=demo', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
    "jsonrpc": "2.0",
    "method": "eth_createAccessList",
    "params": [
      {
        "to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
        "data": "0x70a08231000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045"
      },
      "latest"
    ],
    "id": 1
  })
  });
  const { result } = await response.json();
  console.log(result);
  ```

  ```python Python theme={"dark"}
  import requests

  response = requests.post(
      'https://edge.goldsky.com/standard/evm/1?key=demo',
      json={
    "jsonrpc": "2.0",
    "method": "eth_createAccessList",
    "params": [
      {
        "to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
        "data": "0x70a08231000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045"
      },
      "latest"
    ],
    "id": 1
  }
  )
  print(response.json()['result'])
  ```
</CodeGroup>


## Related topics

- [eth_accounts](/edge-rpc/evm/methods/eth_accounts.md)
- [Use declared eth_calls to increase indexing performance](/subgraphs/guides/declared-eth-calls.md)
- [Role-based access control](/rbac.md)
- [Create low-code subgraphs](/subgraphs/guides/create-a-low-code-subgraph.md)
- [x402 nanopayments: pay-per-call access to Edge RPC](/edge-rpc/capabilities/x402.md)
