このページは英語からの機械翻訳を使用しており、誤りや不明瞭な表現が含まれている可能性があります。最も正確な情報については、オリジナルの英語版をご覧ください。頻繁な更新のため、一部のコンテンツはオリジナルの英語になっている可能性があります。Crowdinでの取り組みに参加して、このページの翻訳改善にご協力ください。 (Crowdin translation page, Contributing guide)
[Transaction] eth_createAccessList
CreateAccessList creates a EIP-2930 type AccessList for the given transaction. Reexec and BlockNrOrHash can be specified to create the accessList on top of a certain state.
JSONRPC: eth_createAccessList
Request
- application/json
Body
Array [
Array [
]
- IntegerBlockNumber
- HexadecimalBlockNumber
- BlockTag
- BlockHash
]
params
undefined[]
EthTransactionArgs
object
accessList
object[]
required
address string
storageKeys string[]
chainId stringrequired
data stringrequired
from stringrequired
gas stringrequired
gasPrice stringrequired
input stringrequired
maxFeePerGas stringrequired
maxPriorityFeePerGas stringrequired
nonce stringrequired
to stringrequired
value stringrequired
BlockNumberOrHashOrTag
object
oneOf
the block number with type integer
number
the block number with type hexadecimal
string
the block tag [latest, pending, earliest]
string
the block hash
string
Responses
- 200
Return accessList
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
error
object
result
object
accessList
object[]
required
address string
storageKeys string[]
error string
gasUsed stringrequired
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": {
"accessList": [
{
"address": "0x00f5f5f3a25f142fafd0af24a754fafa340f32c7",
"storageKeys": [
"0x0000000000000000000000000000000000000000000000000000000000000000"
]
}
],
"gasUsed": "0x644e"
}
}
- curl
- python
- nodejs
- java
- Curl
curl -X 'POST' \
'https://public-en-kairos.node.kaia.io' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"method": "eth_createAccessList",
"id": 1,
"jsonrpc": "2.0",
"params": [{
"from": "0x3bc5885c2941c5cda454bdb4a8c88aa7f248e312",
"data": "0x20965255",
"gasPrice": "0x3b9aca00",
"gas": "0x3d0900",
"to": "0x00f5f5f3a25f142fafd0af24a754fafa340f32c7"
}]
}'
- CURL
curl -L 'https://public-en-kairos.node.kaia.io/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"method": "eth_createAccessList",
"id": 1,
"jsonrpc": "2.0",
"params": [
{
"from": "0x3bc5885c2941c5cda454bdb4a8c88aa7f248e312",
"data": "0x20965255",
"gasPrice": "0x3b9aca00",
"gas": "0x3d0900",
"to": "0x00f5f5f3a25f142fafd0af24a754fafa340f32c7"
}
]
}'
ResponseClear