Consensus

GetRawTransactionInfo

Given a serialized transaction, it will return the corresponding transaction struct.

const res = await fetch("http://127.0.0.1:8648", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
  jsonrpc: "2.0",
  method: "getRawTransactionInfo",
  params: ["rawTx"],
  id: 1
})
});
const data = await res.json();

Parameters

PropType / Default
rawTx
string

Returns

PropType / Default
hash
string
blockNumber
number
timestamp
number
confirmations
number
size
number
relatedAddresses
object
from
string
fromType
number
to
string
toType
number
value
number
fee
number
senderData
array
recipientData
array
flags
number
validityStartHeight
number
proof
array
networkId
number

On this page