BTNS API - Credits BTNS API
Method Endpoint Returns
GET /api/credits/{address},{block} Returns list of token credits
Return Values
Value Type Description
data Array Array of credits
action String Action related to the credit (Ex: ISSUE, MINT, SEND, etc)
amount String Amount of token credited
block_index Integer Block number containing the event
event String Transaction Hash
tick String Token name (Ex: PIZZA)
timestamp Integer A UNIX timestamp of when the transaction was processed by the network
total Integer Total number of credits
Example Response
{
    "data": [{
            "action": "MINT",
            "amount": "1",
            "block_index": 802135,
            "event": "ca71b08ca29e2434e030cb7b51fb78df85e02b67c9b73d6637399cdfb771ce18",
            "tick": "LISTALLOW",
            "timestamp": 1691437073
        },
        {
            "action": "MINT",
            "amount": "1",
            "block_index": 802127,
            "event": "9bf36269e513324085545c60a65890494c8c0f83d4405275c57d491217c1cad5",
            "tick": "LISTALLOW",
            "timestamp": 1691432388
        },
        {
            "action": "ISSUE",
            "amount": "1",
            "block_index": 789742,
            "event": "8b6372c086d75cfef7b3bd4b46dd013640d2c211415f335023a6c425d82136cc",
            "tick": "JDOG",
            "timestamp": 1684090111
        }
    ],
    "total": 3
}