getTransaction
POST
JSON-RPC getTransactionProtocol Details
Inputs
params
txIdstringrequiredOutputs
result
errorstringerror_descriptionstringRelated Schemas
params
params
txIdstringrequiredresult
result
errorstringerror_descriptionstringcURL
cURL
curl \
<JSON_RPC_URL> \
-H 'content-type: application/json' \
--data @- <<'EOF'
{
"jsonrpc": "2.0",
"id": 1,
"method": "getTransaction",
"params": {
"params": {
"txId": "<string>"
}
}
}
EOF
Resultapplication/json
Result
{
"error": "<string>",
"error_description": "<string>"
}