ZKSync API
zks_getRawBlockTransactions
Overview
Ethereum API
- POSTeth_chainId
- POSTeth_call
- POSTeth_estimateGas
- POSTeth_gasPrice
- POSTeth_newFilter
- POSTeth_newBlockFilter
- POSTeth_uninstallFilter
- POSTeth_newPendingTransactionFilter
- POSTeth_getLogs
- POSTeth_getFilterLogs
- POSTeth_getFilterChanges
- POSTeth_getBalance
- POSTweb3_clientVersion
- POSTeth_getBlockByNumber
- POSTeth_getBlockByHash
- POSTeth_getBlockTransactionCountByNumber
- POSTeth_getBlockReceipts
- POSTeth_getBlockTransactionCountByHash
- POSTeth_getCode
- POSTeth_getStorageAt
- POSTeth_getTransactionCount
- POSTeth_sendRawTransaction
- POSTeth_accounts
- POSTeth_feeHistory
ZKSync API
- POSTzks_estimateFee
- POSTzks_estimateGasL1ToL2
- POSTzks_getBridgehubContract
- POSTzks_getMainContract
- POSTzks_getTestnetPaymaster
- POSTzks_getL1BatchBlockRange
- POSTzks_getL1BatchDetails
- POSTzks_L1BatchNumber
- POSTzks_L1ChainId
- POSTzks_getConfirmedTokens
- POSTzks_getAllAccountBalances
- POSTzks_getTransactionDetails
- POSTzks_getBlockDetails
- POSTzks_getBridgeContracts
- POSTzks_getBaseTokenL1Address
- POSTzks_getL2ToL1MsgProof
- POSTzks_getL2ToL1LogProof
- POSTzks_getRawBlockTransactions
- POSTzks_getBytecodeByHash
- POSTzks_getL1GasPrice
- POSTzks_getFeeParams
- POSTzks_getProtocolVersion
- POSTzks_getProof
- POSTzks_sendRawTransactionWithDetailedOutput
Debug API
PubSub API
ZKSync API
zks_getRawBlockTransactions
Lists transactions in a block without processing them
POST
/
zks_getRawBlockTransactions
curl --request POST \
--url https://api.mainnet.abs.xyz/zks_getRawBlockTransactions \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "zks_getRawBlockTransactions",
"params": [
7469801
]
}'
{
"jsonrpc": "2.0",
"result": [
{
"common_data": {
"L2": {
"nonce": 117,
"fee": {
"gas_limit": "0xbadbc",
"max_fee_per_gas": "0x202fbf0",
"max_priority_fee_per_gas": "0x0",
"gas_per_pubdata_limit": "0xc350"
},
"initiatorAddress": "0xe7734c4a8201af41db64da90eddb4c19bbf64710",
"signature": [
203,
118,
119,
63,
1,
54,
91,
252,
188,
23,
120,
51,
4,
28
],
"transactionType": "EIP1559Transaction",
"input": {
"hash": "0x970c9480960818b05832f7e5b76a0c46956003c34942e005672d7ddc537aaa59",
"data": [
2,
249,
1,
111,
1305,
187,
2,
170,
21,
166,
251,
255
]
},
"paymasterParams": {
"paymaster": "0x0000000000000000000000000000000000000000",
"paymasterInput": []
}
}
},
"execute": {
"contractAddress": "0x5155704bb41fde152ad3e1ae402e8e8b9ba335d3",
"calldata": "0fa0x5155704bb41fde152ad3e1ae402e8e8b9ba335d3",
"value": "0x0",
"factoryDeps": null
},
"received_timestamp_ms": 1711649348872,
"raw_bytes": "0x02f9016f8201447580840202fbf"
}
],
"id": 1
}
Body
application/json
JSON-RPC version
The RPC method to be invoked
Request identifier
Parameters for retrieving raw block transactions
Response
200 - application/json
Returns an array of raw transaction objects
The response is of type any
.
Was this page helpful?
curl --request POST \
--url https://api.mainnet.abs.xyz/zks_getRawBlockTransactions \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "zks_getRawBlockTransactions",
"params": [
7469801
]
}'
{
"jsonrpc": "2.0",
"result": [
{
"common_data": {
"L2": {
"nonce": 117,
"fee": {
"gas_limit": "0xbadbc",
"max_fee_per_gas": "0x202fbf0",
"max_priority_fee_per_gas": "0x0",
"gas_per_pubdata_limit": "0xc350"
},
"initiatorAddress": "0xe7734c4a8201af41db64da90eddb4c19bbf64710",
"signature": [
203,
118,
119,
63,
1,
54,
91,
252,
188,
23,
120,
51,
4,
28
],
"transactionType": "EIP1559Transaction",
"input": {
"hash": "0x970c9480960818b05832f7e5b76a0c46956003c34942e005672d7ddc537aaa59",
"data": [
2,
249,
1,
111,
1305,
187,
2,
170,
21,
166,
251,
255
]
},
"paymasterParams": {
"paymaster": "0x0000000000000000000000000000000000000000",
"paymasterInput": []
}
}
},
"execute": {
"contractAddress": "0x5155704bb41fde152ad3e1ae402e8e8b9ba335d3",
"calldata": "0fa0x5155704bb41fde152ad3e1ae402e8e8b9ba335d3",
"value": "0x0",
"factoryDeps": null
},
"received_timestamp_ms": 1711649348872,
"raw_bytes": "0x02f9016f8201447580840202fbf"
}
],
"id": 1
}