BTNS API - Transaction BTNS API
Method Endpoint Returns
GET /api/tx/{transaction} Returns transaction information
Return Values

The returned values will vary based on the transaction type. The values that will be consistent in every transaction are listed below.

Value Type Description
source String Source address
status String Status of the transaction
timestamp Integer A UNIX timestamp of when the transaction was processed by the network
tx_hash String Transaction Hash
tx_index Integer Transaction Index
tx_type String The transaction ACTION (ISSUE, MINT, SEND, etc.)
Example Response - ISSUE
{
    "allow_list": null,
    "block_index": 793483,
    "block_list": null,
    "callback_amount": null,
    "callback_block": null,
    "callback_tick": null,
    "decimals": 0,
    "description": "",
    "lock_callback": false,
    "lock_description": false,
    "lock_mint": false,
    "lock_rug": false,
    "lock_sleep": false,
    "lock_supply": false,
    "max_mint": "0",
    "max_supply": "0",
    "mint_supply": "0",
    "source": "1JDogZS6tQcSxwfxhv6XKKjcyicYA4Feev",
    "status": "valid",
    "tick": "J-DOG",
    "timestamp": 1686276807,
    "transfer": null,
    "transfer_supply": null,
    "tx_hash": "4fb3a5d3220d7711c6c63a509becb23170a293600c4ebfd5dee74df6420f3109",
    "tx_index": 1142,
    "tx_type": "ISSUE"
}
Example Response - LIST
{
    "block_index": 794376,
    "edit": 0,
    "list_edits": {
        "1BTNSGASK5En7rFurDJ79LQ8CVYo2ecLC8": "valid",
        "1FWDonkMbC6hL64JiysuggHnUAw2CKWszs": "valid",
        "1JDogZS6tQcSxwfxhv6XKKjcyicYA4Feev": "valid"
    },
    "list_items": [
        "1BTNSGASK5En7rFurDJ79LQ8CVYo2ecLC8",
        "1FWDonkMbC6hL64JiysuggHnUAw2CKWszs",
        "1JDogZS6tQcSxwfxhv6XKKjcyicYA4Feev"
    ],
    "list_tx_hash": null,
    "source": "1JDogZS6tQcSxwfxhv6XKKjcyicYA4Feev",
    "status": "valid",
    "timestamp": 1686785527,
    "tx_hash": "860dc04b2b59657005a0955f282043c04bc9d5520562d317119722956043ffee",
    "tx_index": 1152,
    "tx_type": "LIST",
    "type": 3
}
Example Response - MINT
{
    "amount": "1",
    "block_index": 802312,
    "destination": null,
    "source": "bc1q4kv96a03gml49mlwjktcrjl4d4xk7j5wj3gewf",
    "status": "valid",
    "tick": "GOD",
    "timestamp": 1691552493,
    "tx_hash": "57d8b115bd0b6273b82b317ea94491713850e1b6a7a4726e6ff9522065f1c7d2",
    "tx_index": 1891,
    "tx_type": "MINT"
}
Example Response - SEND
{
    "block_index": 802262,
    "sends": [
        [
            "bc1q50kxp76j9l0k9jgwasvcz4mcz0v03fv2y5pdxx",
            "JDOG",
            "1",
            "",
            "valid"
        ]
    ],
    "source": "1JDogZS6tQcSxwfxhv6XKKjcyicYA4Feev",
    "timestamp": 1691523030,
    "tx_hash": "286e468ce60d397b078bdc3641d8ddb4e3f6a6bb670a032cad4a74eb4a9f1a7a",
    "tx_index": 1880,
    "tx_type": "SEND"
}