Get BRC20 tx by txid, returns a json object with the BRC20 tx info.
GET http://{ip}:{port}/api/v1/brc20/tx/{txId}
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 info. |
> txid | String | The transaction hash |
> blockhash | String | The block hash. |
> confirmed | Boolean | The transaction have be in chain or not. |
> inscriptions | String | The inscriptions info list. |
>> action | String | The inscription 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. |
>>> operation | String | The brc20 operation |
>>>> type | String | The brc20 type. |
>>>> tick | String | The brc20 tick name. |
>>>> amt | Number | The brc20 value. |
curl --location --request GET 'http://{ip}:{port}/api/v1/brc20/tx/628f019c4e3c30ccc0fd9aae872cb3720294a255127292bf61c38fbee39462fe'
{
"code": 0,
"msg": "ok",
"data": {
"txid": "628f019c4e3c30ccc0fd9aae872cb3720294a255127292bf61c38fbee39462fe",
"blockhash": "000000000000000000022d2e42352853aa9b663f0a51a662988686edf352214e",
"confirmed": true,
"inscriptions": [
{
"action": "transfer",
"inscriptionNumber": 348126,
"inscriptionId": "885441055c7bb5d1c54863e33f5c3a06e5a14cc4749cb61a9b3ff1dbe52a5bbbi0",
"from": {
"address": "bc1pxaneaf3w4d27hl2y93fuft2xk6m4u3wc4rafevc6slgd7f5tq2dqyfgy06"
},
"to": {
"address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"
},
"oldSatpoint": "885441055c7bb5d1c54863e33f5c3a06e5a14cc4749cb61a9b3ff1dbe52a5bbb:0:0",
"newSatpoint": "628f019c4e3c30ccc0fd9aae872cb3720294a255127292bf61c38fbee39462fe:0:0",
"operation": {
"type": "transfer",
"tick": "ordi",
"amt": "100"
}
}
]
}
}