Get BRC20 tx events by txid, returns a json object with the BRC20 tx info.
GET http://{ip}:{port}/api/v1/brc20/tx/{txId}/events
Parameter | Type | Description | Notes |
---|---|---|---|
txId | String | The btc transaction hash. | [default to null] |
Parameter | Type | Description |
---|---|---|
code | Integer | The response code. |
msg | String | A message describing the error. |
data | Object | It is a object with the transaction event info. |
> events | Array | The brc20 event info list. |
>> type | String | The transaction type. |
>> inscriptionId | String | The inscription id. |
>> inscriptionNumber | Number | The inscription number. |
>> oldSatpoint | String | The old sat position. |
>> newSatpoint | String | The new sat position. |
>>> from | String | The transaction from. |
>>>> address | String | The transaction from address. |
>>>> scriptHash | String | The transaction's from script hash. |
>>> to | String | The transaction to. |
>>>> address | String | The transaction to address. |
>>>> scriptHash | String | The transaction's to script hash. |
>>> valid | Boolean | The transaction status. |
>>> msg | String | The transaction info. |
curl --location --request GET 'http://{ip}:{token}/api/v1/brc20/tx/de4b3aada407fd58c2ac6b6b456301b80dcb67d60a53446631855de341ecedc6/events'
{
"code": 0,
"msg": "ok",
"data": {
"events": [
{
"type": "transfer",
"inscriptionId": "1f3f2cce7cbd043671ee3865503043f4973bbb8ba34b1ac94b8a498100c8f274i0",
"inscriptionNumber": 4853820,
"oldSatpoint": "1f3f2cce7cbd043671ee3865503043f4973bbb8ba34b1ac94b8a498100c8f274:0:0",
"newSatpoint": "de4b3aada407fd58c2ac6b6b456301b80dcb67d60a53446631855de341ecedc6:0:0",
"from": {
"address": "bc1qm2vnyxwpskrzwpcpgnlu49g3zyr3gnqpnf64wc"
},
"to": {
"address": "1ASNMdk2Fhindka7qrE6MFmdprvB9b8qJ6"
},
"valid": false,
"msg": "transferable inscriptionId not found: 1f3f2cce7cbd043671ee3865503043f4973bbb8ba34b1ac94b8a498100c8f274i0"
}
],
"txid": "de4b3aada407fd58c2ac6b6b456301b80dcb67d60a53446631855de341ecedc6"
}
}