Get BRC20 block by blockHash, returns a json object with the BRC20 block info.
GET http://{ip}:{port}/api/v1/brc20/block/{blockHash}/events
Parameter | Type | Description | Notes |
---|---|---|---|
blockHash | String | The btc blockHash. | [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 block of brc20 events info. |
> block | Array | The block transaction info list. |
>> txid | String | The transaction hash. |
>> events | Arrays | The brc20 transacion event. |
>>> type | String | The brc20 transaction type. |
>>> tick | String | The tick name. |
>>> inscriptionId | String | The inscription id. |
>>> inscriptionNumber | Number | The inscription number. |
>>> oldSatpoint | String | The old inscription sat position. |
>>> newSatpoint | String | The new inscription sat position. |
>>> amount | Number | The transaction value. |
>>> from | String | The transaction from. |
>>>> address | String | The transaction's from address. |
>>>> scriptHash | String | The transaction's from script hash. |
>>> to | String | The transaction to. |
>>>> address | String | The transaction's to address. |
>>>> scriptHash | String | The transaction's to script. |
>>> valid | Boolean | The transaction status. |
>>> msg | String | The transaction info. |
curl --location --request GET 'http://{ip}:{port}/api/v1/brc20/block/000000000000000000022d2e42352853aa9b663f0a51a662988686edf352214e/events'
{
"code": 0,
"msg": "ok",
"data": {
"block": [
{
"events": [
{
"type": "transfer",
"tick": "ordi",
"inscriptionId": "885441055c7bb5d1c54863e33f5c3a06e5a14cc4749cb61a9b3ff1dbe52a5bbbi0",
"inscriptionNumber": 348126,
"oldSatpoint": "885441055c7bb5d1c54863e33f5c3a06e5a14cc4749cb61a9b3ff1dbe52a5bbb:0:0",
"newSatpoint": "628f019c4e3c30ccc0fd9aae872cb3720294a255127292bf61c38fbee39462fe:0:0",
"amount": "100000000000000000000",
"from": {
"address": "bc1pxaneaf3w4d27hl2y93fuft2xk6m4u3wc4rafevc6slgd7f5tq2dqyfgy06"
},
"to": {
"address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"
},
"valid": true,
"msg": "ok"
}
],
"txid": "628f019c4e3c30ccc0fd9aae872cb3720294a255127292bf61c38fbee39462fe"
}
]
}
}