Last updated 8 months ago
Get the inputs of a tx.
Tx id
Successful operation
"OK"
const response = await fetch('https://open-api.unisat.io/v1/indexer/tx/{txid}/ins', { method: 'GET', headers: {}, }); const data = await response.json();
{ "code": 0, "msg": "OK", "data": { "address": "text", "codeType": 0, "inscriptions": [ { "inscriptionId": "text", "isBRC20": false, "moved": false } ], "scriptPk": "text", "scriptSig": "text", "scriptType": "text", "scriptWits": "text", "txid": "text", "utxid": "text" } }