⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins

Method: POST priv_getPrivateTransaction

dropdown

# priv_getPrivateTransaction example for Ethereum (ETH)

POST priv_getPrivateTransaction

Method not allowed

Returns the private transaction if you are a participant, otherwise, null.

Parameters

data - None

Transaction hash returned by eea_sendRawTransaction or eea_sendTransaction.

Request

curl --location --request POST 'https://eth.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "priv_getPrivateTransaction",
"params": [null],
"id": "getblock.io"}'


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}