curl --request POST \
--url https://api.mainnet.abs.xyz/zks_getBytecodeByHash \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "zks_getBytecodeByHash",
"params": [
"0x3ff97eb2bc8a040d2e50863fb586a841f385293fa583a0e4c5ebe6e2f4cbb069"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": [
123
]
}
Retrieves the bytecode of a transaction by its hash
curl --request POST \
--url https://api.mainnet.abs.xyz/zks_getBytecodeByHash \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "zks_getBytecodeByHash",
"params": [
"0x3ff97eb2bc8a040d2e50863fb586a841f385293fa583a0e4c5ebe6e2f4cbb069"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": [
123
]
}
Returns an array of the transaction's bytecode
The response is of type any
.
Was this page helpful?