Skip to main content

ots_getInternalOperations RPC Method

Returns the list of internal operations in the block with the specified block number. It traces internal ETH transfers, contracts creation (CREATE/CREATE2) and self-destructs for a certain transaction.

Updated on
Nov 2, 2023

ots_getInternalOperations RPC Method

Parameters

txhash
string
REQUIRED
The transaction hash

Returns

result
array
An array of operations, sorted by their occurrence inside the transaction, which contains the following fields:
type
string
The type of transaction. It is (0) for transfer, (1) for self-destruct, (2) for create or (3) for create2
from
string
The ETH sender or contract creator
to
string
The ETH receiver or newly created contract address
value
string
The amount of ETH transferred
Request
1
curl https://docs-demo.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"ots_getInternalOperations","params":["0x9483cb44bd1bcf06a75cab29cf43e838d31af5d76661967407425a49c9945fbc"],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free