Last updated 6 months ago
Get the summary info of a tx.
Tx id
Successful operation
"OK"
const response = await fetch('https://open-api.unisat.io/v1/indexer/tx/{txid}', { method: 'GET', headers: {}, }); const data = await response.json();
{ "code": 0, "msg": "OK", "data": { "detail": { "txid": "text", "nIn": 0, "nOut": 0, "inSatoshi": 0, "outSatoshi": 0, "locktime": 0, "size": 0, "witOffset": 0, "height": 0, "idx": 0, "blkid": "text", "confirmations": 0, "timestamp": 0 }, "start": 0, "total": 0 } }