POST
/
zks_getBytecodeByHash
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
  ]
}

Body

application/json
jsonrpc
string
default:2.0
required

JSON-RPC version

method
string
default:zks_getBytecodeByHash
required

The RPC method to be invoked

id
integer
default:1
required

Request identifier

params
any[]
required

Parameters for retrieving bytecode

Response

200 - application/json
Returns an array of the transaction's bytecode

The response is of type any.