More resources
Get block events

Get block events#

Get BRC20 block by blockHash, returns a json object with the BRC20 block info.

Request address#

GET http://{ip}:{port}/api/v1/brc20/block/{blockHash}/events

Request param#

ParameterTypeDescriptionNotes
blockHashStringThe btc blockHash.[default to null]

Response param#

ParameterTypeDescription
codeIntegerThe response code.
msgStringA message describing the error.
dataObjectIt is a object with the block of brc20 events info.
> blockArrayThe block transaction info list.
>> txidStringThe transaction hash.
>> eventsArraysThe brc20 transacion event.
>>> typeStringThe brc20 transaction type.
>>> tickStringThe tick name.
>>> inscriptionIdStringThe inscription id.
>>> inscriptionNumberNumberThe inscription number.
>>> oldSatpointStringThe old inscription sat position.
>>> newSatpointStringThe new inscription sat position.
>>> amountNumberThe transaction value.
>>> fromStringThe transaction from.
>>>> addressStringThe transaction's from address.
>>>> scriptHashStringThe transaction's from script hash.
>>> toStringThe transaction to.
>>>> addressStringThe transaction's to address.
>>>> scriptHashStringThe transaction's to script.
>>> validBooleanThe transaction status.
>>> msgStringThe transaction info.

Request example#

shell
curl --location --request GET 'http://{ip}:{port}/api/v1/brc20/block/000000000000000000022d2e42352853aa9b663f0a51a662988686edf352214e/events'

Response example#

200
{
    "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"
            }
        ]
    }
}