Skip to main content

zks_getBytecodeByHash RPC Method

Returns bytecode of a transaction given by its hash.

Updated on
Oct 29, 2024

zks_getBytecodeByHash RPC Method

Parameters

hash
string
REQUIRED
The hash of the transaction

Returns

result
The byte code of the given transaction
Request
1
curl https://docs-demo.abstract-testnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"zks_getBytecodeByHash","params":["YOUR_TRANSACTION_HASH"],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free