Transactions
Chain coverage:
getTransactionByHashis supported on EVM, Solana, Starknet, and the Cosmos SDK chains.getReceipt(getTransactionReceipt) is dispatched through a shared receipt router that accepts both EVM and Starknet chains, and additionally returns decodedtx_responseobjects on Cosmos chains.traceTransactionremains EVM-only.
getReceipt
Returns the full transaction receipt. EVM responses include gas used, status, contract creation address, logs, and decoded event names. Starknet receipts are returned in their native Cairo shape. Cosmos chains return a decoded `tx_response` from the LCD.
curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "getReceipt",
"params": {
"chain": "ethereum",
"hash": "0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060"
},
"id": 1
}'import { Spectrum } from '@spectrumnodes/sdk';
const spectrum = new Spectrum({ api: 'https://your-endpoint.simplystaking.xyz/YOUR_API_KEY/' });
const result = await spectrum.data.getReceipt('ethereum', '0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060');
console.log(result);{
"jsonrpc": "2.0",
"result": {
"data": {
"chain": "ethereum",
"transactionHash": "0x5c504ed4...",
"blockNumber": "0xb443",
"from": "0xa1e4380a...",
"to": "0x5df9b879...",
"status": "0x1",
"gasUsed": "0x5208",
"effectiveGasPrice": "0x2d79883d2000",
"contractAddress": null,
"logs": [],
"decodedLogs": []
}
},
"id": 1
}Parameters
| Name | Required | Description |
|---|---|---|
| chain | yes | Network slug |
| hash | yes | Transaction hash (0x + 64 hex) e.g. 0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060 |
Response Fields
| Field | Type |
|---|---|
data | object |
chain | string |
transactionHash | string |
blockNumber | string |
from | string |
to | string |
status | string |
gasUsed | string |
effectiveGasPrice | string |
contractAddress | null |
logs | array |
decodedLogs | array |
Supported Networks
getTransactionByHash
Get transactions by hash from multiple chains in a single call. Pass chain:txHash pairs.
curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "getTransactionByHash",
"params": [
{
"chain": "ethereum",
"hash": "0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060"
}
],
"id": 1
}'{
"jsonrpc": "2.0",
"result": {
"data": {
"count": 1,
"results": [
{
"chain": "ethereum",
"hash": "0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060",
"transaction": {
"blockNumber": "0x2710",
"from": "0xa1e4380a3b1f749673e270229993ee55f35663b4",
"to": "0x5df9b87991262f6ba471f09758cde1c0fc1de734"
}
}
]
}
},
"id": 1
}Parameters
| Name | Required | Description |
|---|---|---|
| items | yes | Comma-separated chain:txHash pairs e.g. ethereum:0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060 |
Response Fields
| Field | Type |
|---|---|
data | object |
count | integer |
results | object[] |
chain | string |
hash | string |
transaction | object |
blockNumber | string |
from | string |
to | string |
traceTransaction
Returns the execution trace of a transaction using debug_traceTransaction (Geth) or trace_transaction (Parity/Erigon). Shows internal calls, delegatecalls, and value transfers. Availability depends on the chain node configuration.
curl -X POST https://your-endpoint.simplystaking.xyz/v1 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "traceTransaction",
"params": {
"chain": "ethereum",
"hash": "0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060"
},
"id": 1
}'import { Spectrum } from '@spectrumnodes/sdk';
const spectrum = new Spectrum({ api: 'https://your-endpoint.simplystaking.xyz/YOUR_API_KEY/' });
const result = await spectrum.data.traceTransaction('ethereum', '0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060');
console.log(result);{
"jsonrpc": "2.0",
"result": {
"data": {
"chain": "ethereum",
"hash": "0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060",
"tracer": "callTracer",
"trace": {
"type": "CALL",
"from": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"value": "0x0",
"gas": "0x5208",
"gasUsed": "0x5208",
"input": "0x",
"output": "0x"
}
}
},
"id": 1
}Parameters
| Name | Required | Description |
|---|---|---|
| chain | yes | Network slug |
| hash | yes | Transaction hash to trace e.g. 0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060 |
Response Fields
| Field | Type |
|---|---|
data | object |
chain | string |
hash | string |
tracer | string |
trace | object |
type | string |
from | string |
to | string |
value | string |
gas | string |
gasUsed | string |
input | string |
output | string |