LogoLogo
  • Introduction
  • Radius testnet access
  • Quickstart
    • Command line
    • Go
    • JavaScript
    • Postman
    • Python
    • Rust
    • TypeScript
  • How to
    • Create a Private Key
    • Get testnet ETH tokens
    • Deploy a smart contract
  • Concepts
    • Ethereum transaction types
  • Tutorials
  • Radius SDKs
  • API Reference
    • eth_blockNumber
    • eth_call
    • eth_chainId
    • eth_createAccessList
    • eth_estimateGas
    • eth_feeHistory
    • eth_gasPrice
    • eth_getBalance
    • eth_getBlock
    • eth_getBlockByHash
    • eth_getBlockByNumber
    • eth_getBlockTransactionCountByHash
    • eth_getBlockTransactionCountByNumber
    • eth_getCode
    • eth_getLogs
    • eth_getStorageAt
    • eth_getTransactionByBlockHashAndIndex
    • eth_getTransactionByBlockNumberAndIndex
    • eth_getTransactionByHash
    • eth_getTransactionCount
    • eth_getTransactionReceipt
    • eth_sendRawTransaction
    • eth_sendTransaction
    • net_version
    • web3_clientVersion
    • web3_sha3
    • web3_getTransactionCount
  • Release Notes
  • Whitepaper
  • Radius Discord
Powered by GitBook
On this page
  • Parameters
  • Returns
  • Example

Was this helpful?

Edit on GitHub
  1. API Reference

eth_createAccessList

Previouseth_chainIdNexteth_estimateGas

Last updated 1 month ago

Was this helpful?

Creates an access list that you can include in a .

Use this method to optimize your smart contract interactions. Access lists are a part of Ethereum's EIP-2930, which aims to improve the network's scalability and reduce gas costs by specifying an explicit list of addresses and storage keys that a transaction intends to access.

Officially, we do not yet support eth_createAccessList

Parameters

  • Transaction call object: [Required]

    • from: 20 bytes. The address of the sender.

    • to: 20 bytes. Address the transaction is directed to.

    • gas: Hexadecimal value of the gas provided for the transaction execution.

    • gasPrice: Hexadecimal value gas price (in wei) provided by the sender. The default is 0. Used only in non-EIP-1559 transactions.

    • maxPriorityFeePerGas: Maximum fee (in wei) the sender is willing to pay per gas above the base fee. See . If used, must specify maxFeePerGas.

    • maxFeePerGas: Maximum total fee (base fee + priority fee, in wei), the sender is willing to pay per gas. See . If used, must specify maxPriorityFeePerGas.

    • value: Hexadecimal of the value transferred, in wei.

    • data: Hash of the method signature and encoded parameters. See .

  • block parameter: A string representing a block number, block hash, or one of the string tags latest, earliest, pending, safe, or finalized. See the .

Returns

Access list object with the following fields:

  • accessList: A list of objects with the following fields:

    • address: Addresses to be accessed by the transaction.

    • storageKeys: Storage keys to be accessed by the transaction.

  • gasUsed: A hexadecimal string representing the approximate gas cost for the transaction if the access list is included.

Example

Request

curl https://rpc.testnet.tryradi.us/<YOUR-RPC-ENDPOINT> \
  -X POST \
  -H "Content-Type: application/json" \
  -d '
{
  "jsonrpc": "2.0",
  "method": "eth_createAccessList",
  "params": [
    {
      "from": "0xcAE4D474A43B186606bB836F463d4b4072B7fBe3",
      "data": "0x406080806080606174"
    },
    "pending"
  ],
  "id": 1
}
'

Response

{
"jsonrpc":"2.0",
"id":1,
"error":{"code":-33000,"message":"Method eth_create_access_list not yet supported."}
}

Request

cast access-list \
  0xcAE4D474A43B186606bB836F463d4b4072B7fBe3 \
  "0x406080806080606174" \
  --rpc-url https://rpc.testnet.tryradi.us/<YOUR-RPC-ENDPOINT> \
  --block pending

Response

Error: server returned an error response: error code -32601: Method not found
EIP-2930
transaction
Ethereum contract ABI specification
default block parameter
EIP-1559 transactions
EIP-1559 transactions