Events
Events represent specific actions that happen within the Runes protocol. They are emitted every time a new block is processed by the indexer.
An example "Event" object looks as follows:
Attribute descriptions
id
Unique identifier for an event (in sequential order from when they were processed by the indexer)
type
Represents the type of action the event represents. The nana indexer exposes three different type of events, which are the following
block
The block in which the event ocurred
transaction_hash
The transaction hash in which the event ocurred
rune_protocol_id
A unique identifier representing the rune. Runes are identified by the block and tx index of an "etch" transaction with the format block:tx
rune_name
A readable representation of a rune name with spacers included (the "•")
rune_raw_name
The raw representation of the rune (without spacers included). These are unique to every rune.
amount
The raw amount of the rune transferred with decimals excluded. To get the amount with decimals you can do amount / 10^decimals
decimals
The amount of decimals specified by the Rune during its "etch".
from_address & to_address
For "from_address" represents the source of the runes event. For "to_address" represents the desitnation of the runes from the event. Can be any of the following:
GET /runes/events/block/:height
Description
This endpoint retrieves all Mint, Etch, and Transfer events from a specific block. It returns an array of events.
URL
/runes/events/block/:height
Method
GET
URL Parameters
height
(integer) - The block height from which to retrieve events.
Success Response
Code: 200 OK
Content:
GET /runes/events/tx/:hash
Description
This endpoint retrieves all Mint, Etch, and Transfer events from a specific transaction. It returns an array of events.
URL
/runes/events/tx/:hash
Method
GET
URL Parameters
hash
(string) - The transaction hash of the transaction you want to fetch events from.
Success Response
Code: 200 OK
Content:
GET /runes/events/address/:address
Description
This endpoint retrieves all Mint, Etch, and Transfer events from or to an address. It returns an array of events.
URL
/runes/events/tx/:hash
Method
GET
URL Parameters
address
(string) - A valid bitcoin address (RPC does not support getting from UNALLOCATED or GENESIS)
Success Response
Code: 200 OK
Content:
Last updated