Skip to main content

Hathor API (0.59.0)

Download OpenAPI specification:Download

Hathor Events

Returns information about past events

query Parameters
last_ack_event_id
int

ID of last acknowledged event

size
int

Amount of events

Responses

Response samples

Content type
application/json
null

Feature Activation

Returns information about features in the Feature Activation process

Responses

Response samples

Content type
application/json
null

Run full node profiler

Request Body schema: application/json
required

Profiler data

start
bool

Only sent if should start profiler

stop
bool

Only sent if should stop profiler

filepath
string

Path to save the profiler path (only in case of stop)

Responses

Request samples

Content type
application/json
Example
{
  • "start": true
}

Response samples

Content type
application/json
Example
{
  • "success": true
}

Mining Statistics

Returns information about each miner connected to the current node

Responses

Response samples

Content type
application/json
null

Hathor version

Responses

Response samples

Content type
application/json
{
  • "version": "0.16.0-beta",
  • "network": "testnet-bravo",
  • "min_weight": 14,
  • "min_tx_weight": 14,
  • "min_tx_weight_coefficient": 1.6,
  • "min_tx_weight_k": 100,
  • "token_deposit_percentage": 0.01,
  • "reward_spend_min_blocks": 300,
  • "max_number_inputs": 256,
  • "max_number_outputs": 256
}

Websocket stats

Responses

Response samples

Content type
application/json
{
  • "connections": 4,
  • "addresses": 6
}

healthcheck

Health status of the fullnode

Returns 200 if the fullnode should be considered healthy.

Returns 503 otherwise. The response will contain the components that were considered for the healthcheck and the reason why they were unhealthy.

Returning 503 with a response body is not the standard behavior for our API, but it was chosen because most healthcheck tools expect a 503 response code to indicate that the service is unhealthy.

Optionally, there is a query parameter 'strict_status_code' that can be used to return 200 even if the fullnode is unhealthy. When its value is 1, the response will always be 200.

We currently perform 2 checks in the sync mechanism for the healthcheck:

  1. Whether the fullnode has recent block activity, i.e. if the fullnode has blocks with recent timestamps.
  2. Whether the fullnode has at least one synced peer
query Parameters
strict_status_code
string

Enables strict status code. If set to 1, the response will always be 200.

Responses

Response samples

Content type
application/json
{
  • "status": "pass",
  • "description": "Hathor-core v0.56.0",
  • "checks": {
    }
}

p2p

Add p2p peers

Connect to the given peers

Request Body schema: application/json
required

Peers you want to connect to

Array
string

Responses

Request samples

Content type
application/json
[
  • "tcp:localhost:8000",
  • "tcp:17.24.137.234:40403"
]

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "peers": [
    ]
}

Readiness status of the fullnode

Returns 200 if the fullnode should be considered ready from the perspective of the sync mechanism.

Returns 503 otherwise. The response will contain the reason why it is not ready in this case.

We currently check 2 things for the readiness:

  1. Whether the fullnode has recent block activity, i.e. if the fullnode has blocks with recent timestamps.
  2. Whether the fullnode has at least one synced peer

It's possible to customize the behavior of this endpoint by tweaking what should be considered recent activity. See the setting P2P_RECENT_ACTIVITY_THRESHOLD_MULTIPLIER and the comment above it in hathor/conf/settings.py for more info.

Responses

Response samples

Content type
application/json
{
  • "success": true
}

Block to be mined

Returns the base64 of the block to be mined inbytes and an array of the hash of parents in hex

query Parameters
address
string

Address to send the mined tokens

Responses

Response samples

Content type
application/json
{
  • "parents": [
    ],
  • "block_bytes": "AAFALAAAAAAAAFw3hyYAAAAAAAAAAgAAAAEAAwAAAeKYVw431G+RAbz5A73mcYbyaoPYi5yxlvOLSWI0VwAAKzvk44duZ7XgkNdtzXHN4aMMoeVOONZXF7oTHNIvAAK7Fx3jSQgoAo7F7vMyWVastrz/pqUEZruagdODY8IAAAfQAAAZdqkUjb8SxMLMIljwVbjaYSHUbiVSjt6IrAAAAAA="
}

Propagate a mined block

Propagate to the Hathor network a complete block after the proof-of-work

Request Body schema: application/json
required

Data to be propagated

block_bytes
required
string

Bytes of block after pow in base 64

Responses

Request samples

Content type
application/json
{
  • "block_bytes": "AAFALAAAAAAAAFw3iaUAAAAAAAAAAgAAAAEAAwAAAeKYVw431G+RAbz5A73mcYbyaoPYi5yxlvOLSWI0VwAAKzvk44duZ7XgkNdtzXHN4aMMoeVOONZXF7oTHNIvAAK7Fx3jSQgoAo7F7vMyWVastrz/pqUEZruagdODY8IAAAfQAAAZdqkU0AoLEAX+1b36s+VyaMc9bkj/5byIrAAAEa8="
}

Response samples

Content type
application/json
Example
null

Mining info

Return the block's height, global hashrate, and mining difficulty.

Responses

Response samples

Content type
application/json
Example
{
  • "blocks": 6354,
  • "mined_tokens": 40665600,
  • "difficulty": 1023.984375,
  • "networkhashps": 146601550370.13358,
  • "success": true
}

Get netfilter rules by chain

Returns the list of all netfilter rules from one chain.

query Parameters
chain
required
string

Chain to get the netfilter rules.

Responses

Response samples

Content type
application/json
Example
{
  • "rules": [
    ]
}

Add p2p netfilter rule

Add netfilter rules.

Request Body schema: application/json
required

Netfilter rule data to add.

chain
any
match
any
match_params
any
target
any
target_params
any

Responses

Request samples

Content type
application/json
{
  • "chain": {
    },
  • "target": {
    },
  • "match": {
    }
}

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "uuid": "93095688-8ad5-4b9a-ab6b-c9e7b6d1fab5",
  • "chain": {
    },
  • "target": {
    },
  • "match": {
    }
}

Delete p2p netfilter rule

Delete netfilter rules.

Request Body schema: application/json
required

Netfilter rule data to delete.

chain
any
match
any
match_params
any
target
any
target_params
any

Responses

Request samples

Content type
application/json
{
  • "chain": "post_peerid",
  • "rule_uuid": "93095688-8ad5-4b9a-ab6b-c9e7b6d1fab5"
}

Response samples

Content type
application/json
Example
{
  • "success": true
}

Status of Hathor network

Returns the server data and the details of peers

Responses

Response samples

Content type
application/json
{
  • "server": {
    },
  • "known_peers": [ ],
  • "connections": {
    },
  • "dag": {
    }
}

netfilter

Get netfilter rules by chain

Returns the list of all netfilter rules from one chain.

query Parameters
chain
required
string

Chain to get the netfilter rules.

Responses

Response samples

Content type
application/json
Example
{
  • "rules": [
    ]
}

Add p2p netfilter rule

Add netfilter rules.

Request Body schema: application/json
required

Netfilter rule data to add.

chain
any
match
any
match_params
any
target
any
target_params
any

Responses

Request samples

Content type
application/json
{
  • "chain": {
    },
  • "target": {
    },
  • "match": {
    }
}

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "uuid": "93095688-8ad5-4b9a-ab6b-c9e7b6d1fab5",
  • "chain": {
    },
  • "target": {
    },
  • "match": {
    }
}

Delete p2p netfilter rule

Delete netfilter rules.

Request Body schema: application/json
required

Netfilter rule data to delete.

chain
any
match
any
match_params
any
target
any
target_params
any

Responses

Request samples

Content type
application/json
{
  • "chain": "post_peerid",
  • "rule_uuid": "93095688-8ad5-4b9a-ab6b-c9e7b6d1fab5"
}

Response samples

Content type
application/json
Example
{
  • "success": true
}

block

Get block at height

Returns the block at specific height in the best chain.

query Parameters
height
required
int

Height of the block to get

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "block": {
    }
}

transaction

Create unsigned unmined raw transaction

Request Body schema: application/json
required

Inputs and outputs to use

Array of objects (TxInput)
Array of AddressOutput (object) or ScriptOutput (object)

Responses

Request samples

Content type
application/json
{
  • "inputs": [
    ],
  • "outputs": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "hex_data": "0001000101000005551d7740fd7d3c0acc50b5677fdd844f1225985aa431e1712af2a2fd89010000000015e000001976a914afa600556bf43ece9b8e0486baa31bd46a82c3af88ac40310c373eed982e5f63d94d0200000000b0e8be665f308f1d48d2201060846203280062b1cccc4e3d657486e90000000071c0d2cafa192b421bb5727c84174c999f9400d3be74331e7feba08a00000000",
  • "data": {
    }
}

Dashboard of transactions

query Parameters
tx
required
int

Quantity of transactions in the dashboard

block
required
int

Quantity of blocks in the dashboard

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "transactions": [
    ],
  • "blocks": [
    ]
}

Transaction or list of transactions/blocks

Returns a transaction by hash or a list of transactions/blocks depending on the parameters sent. If "id" is sent as parameter, we return only one transaction, else we return a list. In the list return we have a key "has_more" that indicatesif there are more transactions/blocks to be fetched

query Parameters
id
string

Hash in hex of the transaction/block

type
string

Type of list to return (block or tx)

count
int

Quantity of elements to return

page
string

If the user clicked "previous" or "next" button

hash
string

Hash reference for the pagination

Responses

Response samples

Content type
application/json
Example
{
  • "tx": {
    },
  • "meta": {
    },
  • "spent_outputs": {
    },
  • "success": true
}

Decode transaction

query Parameters
hex_tx
required
string

Transaction to be decoded in hexadecimal

Responses

Response samples

Content type
application/json
Example
{
  • "tx": {
    },
  • "meta": {
    },
  • "spent_outputs": {
    },
  • "success": true
}

Graphviz

Returns the generated file with the graph of the full DAG in the format requested.

path Parameters
format
required
string
Enum: "pdf" "png" "jpg" "dot"

Format of the returned file

query Parameters
weight
boolean

If we will show the weight

acc_weight
boolean

If we will show the accumulated weight

verifications
boolean

Wether to show the verifications graph

funds
boolean

If we will generate the network graph or the funds graph

only_blocks
boolean

Only show blocks, hides transactions

Responses

Response samples

Content type
application/json
{ }

Graphviz neighbours

Returns the generated file with the graph of neighbours of a tx in the format requested.

path Parameters
format
required
string
Enum: "pdf" "png" "jpg" "dot"

Format of the returned file

query Parameters
tx
required
string

Id of the transaction or block to generate the neighborhood graph

graph_type
required
string
Enum: "verification" "funds"

Type of the graph in case of a neighborhood graph.

max_level
required
int

How many levels the neighbor can appear in the graph.Max level is 3

Responses

Response samples

Content type
application/json
{ }

Push transaction to the network

Request Body schema: application/json
required

Transaction to be pushed in hexadecimal

hex_tx
any

Responses

Request samples

Content type
application/json
{
  • "hex_tx": null
}

Response samples

Content type
application/json
Example
{
  • "success": true
}

Push transaction to the network

query Parameters
hex_tx
required
string

Transaction to be pushed in hexadecimal

Responses

Response samples

Content type
application/json
Example
{
  • "success": true
}

Accumulated weight data of a transaction

Returns the accumulated weight and confirmation level of a transaction

query Parameters
id
required
string

Hash in hex of the transaction/block

Responses

Response samples

Content type
application/json
Example
{
  • "accumulated_weight": 15.4,
  • "confirmation_level": 0.88,
  • "stop_value": 14.5,
  • "accumulated_bigger": true,
  • "success": true
}

Return tx parents for new transactions

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "tx_parents": [
    ]
}

Validate address and also create output script

path Parameters
address
required
string

Base58 address to be decoded

Responses

Response samples

Content type
application/json
{
  • "valid": true,
  • "script": "dqkUr6YAVWv0Ps6bjgSGuqMb1GqCw6+IrA==",
  • "address": "HNXsVtRUmwDCtpcCJUrH4QiHo9kUKx199A"
}

mempool

List of mempool transactions

Returns a list of all transactions currently on the mempool

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "transactions": [
    ]
}

mining

EXPERIMENTAL: Get parameters for a miner, pool or proxy, to build mining block.

query Parameters
capabilities
Array of strings
Items Value: "mergedmining"

Requested capabilities when generating a block template

Responses

Response samples

Content type
application/json
{
  • "timestamp": 0,
  • "version": 0,
  • "weight": 0,
  • "parents": [
    ],
  • "outputs": [
    ]
}

EXPERIMENTAL: Called by a miner to submit a block they found

Request Body schema: application/json
required

Data to be propagated

hexdata
string

Responses

Request samples

Content type
application/json
{
  • "hexdata": "string"
}

Response samples

Content type
application/json
{
  • "result": null
}

utxo

private_wallet

Address

Returns an address to be used in the wallet

query Parameters
new
required
boolean

New or old address

Responses

Response samples

Content type
application/json
{
  • "address": "15VZc2jy1L3LGFweZeKVbWMsTzfKFJLpsN"
}

Balance

Returns the current balance of the wallet (available and locked tokens)

Responses

Response samples

Content type
application/json
{
  • "balance": {
    }
}

History of transactions of the wallet

Returns a list with all the transactions of this wallet (in the page requested) and the total pages

query Parameters
page
required
int

Number of requested page

count
required
int

Quantity of elements in each page

Responses

Response samples

Content type
application/json
{
  • "history": [
    ],
  • "total_pages": 7
}

Lock a wallet

Responses

Response samples

Content type
application/json
{
  • "success": true
}

Send tokens

Request Body schema: application/json
required

Data to create transactions

required
object
required
Array of objects (AddressOutput)

List of outputs to send the tokens

required
Array of objects (Input)

List of inputs to spend the tokens (can be empty)

timestamp
integer

The timestamp for the transaction. If sent without the inputs, server will chose inputs whose timestamp is smaller than the given value (so the tx is valid). If user sends timestamp=0, server will use current time.

Responses

Request samples

Content type
application/json
{
  • "data": {
    }
}

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "message": "",
  • "tx": {
    }
}

Sign transaction

Returns a transaction after signing. If "prepare_to_send" is true, it also add the parents, weight, timestamp and solves proof-of-work.

query Parameters
hex_tx
required
string

Transaction in hex to be signed

prepare_to_send
boolean

If proof-of-work should be done

Responses

Response samples

Content type
application/json
Example
{
  • "hex_tx": "00014032dc90beef51545c37d59600000000000000000002000200020000000b8792cb13e8adb51cc7d866541fc29b532e8dec95ae4661cf3da4d42cb400001417652b9d7bd53eb14267834eab08f27e5cbfaca45a24370e79e0348bb90000088c5a4dfcef7fd3c04a5b1eccfd2de032b23749deff871b0a090000f5f601006a473045022100befd7bbe9f17c8762adfa3c594e19ded5dafcc891ff9722ea9fc949dcd9f66e8022039f033b3dd900feac2dd905cb0775a77a0b5d3aa57c82ff87eb7be85956ec49c2103ea83bcb645a9d376741c0ef167788ce3ad4cc9a0fce49a8352b6837c5ed2d3500000003398322f99355f37439e32881c83ff08b83e744e799b1d6a67f73bee4500006a473045022100a8fbc3d7c53377a36c31590631a23d46cc56a8ba30db65b52811d4516ff7e54102204514f69c4910706f5f2130600076fdb0a25b135de222efcaf41718a6926835762103c32f7899bec0d2f237450e695cbdcd849bf64d6180ce056777a195b1a6e0390d0000077500001976a9149651450c90725794e3554972dd97376c1e26307d88ac0000003700001976a9148e33e0fb3c06e890def74d48d326d0c5c00fac0b88ac000184fb",
  • "success": true
}

State of the wallet

Returns if the wallet is locked and its type

Responses

Response samples

Content type
application/json
{
  • "is_locked": false,
  • "type": "hd"
}

Unlock a wallet

Unlock HD Wallet or Keypair Wallet, depending on the parameters sent. For Keypair Walletwe need the password and for HD Wallet the passphrase and the words (optional)

Request Body schema: application/json
required

Data to unlock your wallet

words
string

24 words for HD Wallet

passphrase
string

Passphrase for HD Wallet (can be empty string)

password
string

Password to unlock keypair wallet

Responses

Request samples

Content type
application/json
Example
{
  • "passphrase": "1234",
  • "words": "yellow viable junk brand mosquito sting rhythm stumble cricket report circle elite gasp kingdom spy capable beach peanut plastic finish robot venue mixture talent"
}

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "words": "yellow viable junk brand mosquito sting rhythm stumble cricket report circle elite gasp kingdom spy capable beach peanut plastic finish robot venue mixture talent"
}

nano-contract

Decode nano contract

Returns the nano contract transaction decoded

query Parameters
hex_tx
required
string

Nano contract to be decoded in hexadecimal

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "nano_contract": {
    },
  • "outputs": [
    ],
  • "my_inputs": [
    ],
  • "other_inputs": [ ]
}

Execute nano contract

Returns the hexadecimal of the propagated transaction

Request Body schema: application/json
required

Data to execute nano contract

spent_tx_id
required
string

Id in hex of the transaction being spent

spent_tx_index
required
index

Index of the output of the transaction being spent

oracle_data
required
string

Data in base64 provided by the oracle

oracle_signature
required
string

Signature in base64 of the oracle data

oracle_pubkey
required
string

Public key of the oracle in base64

address
required
string

Winning address in base58

value
required
integer

Total value of the nano contract (without decimal places)

Responses

Request samples

Content type
application/json
{
  • "spent_tx_id": "6da000cdbd93d71052a45d33809f9fbd4400f0ec614ed7fcec7e01071629946e",
  • "spent_tx_index": 0,
  • "oracle_data": "B3NvbWVfaWQEW/xjGQIBLA==",
  • "oracle_signature": "MEUCIGeqbmLRI6lrgXMy4sQEgK94F5m14oVL5Z7oLLVII7BUAiEApKTMuWlwvws574+jtqKW5/AuH+ICD0u+HyMyHe0aric=",
  • "oracle_pubkey": "Awmloohhey8WhajdDURgvbk1z3JHX2vxDSBjz9uG9wEp",
  • "address": "1Pa4MMsr5DMRAeU1PzthFXyEJeVNXsMHoz",
  • "value": 2000
}

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "hex_tx": "00013ff00000000000005c3899fc0000000000000000000100010002005d9e609fb85c512ac590221aed8cc5e7b7f646a4511e61ec401eba7bda794bd30002bb171de3490828028ec5eef3325956acb6bcffa6a50466bb9a81d38363c25d9e609fb85c512ac590221aed8cc5e7b7f646a4511e61ec401eba7bda794bd300007b1007736f6d655f6964045bfc631902012c473045022067aa6e62d123a96b817332e2c40480af781799b5e2854be59ee82cb54823b054022100a4a4ccb96970bf0b39ef8fa3b6a296e7f02e1fe2020f4bbe1f23321ded1aae27210309a5a288617b2f1685a8dd0d4460bdb935cf72475f6bf10d2063cfdb86f70129000007d000001976a914f7934a91973cd100d753304f9a98267c8d4e6c0a88ac00000000"
}

Create a match value nano contract

Returns the hexadecimal of the created nano contract

Request Body schema: application/json
required

Data to create the nano contract

required
Array of objects (NanoContractBet)

List of bets

fallback_address
required
string

Address in base58 that will execute the contract in case none of the bets is the winner

oracle_pubkey_hash
required
string

Oracle public key in base64

oracle_data_id
required
string

Id of the oracle of this nano contract

total_value
required
integer

Total value of the nano contract

input_value
required
integer

Amount this wallet should stake in the nano contract

Responses

Request samples

Content type
application/json
{
  • "oracle_data_id": "some_id",
  • "total_value": 2000,
  • "input_value": 2000,
  • "min_timestamp": 1,
  • "fallback_address": "1CBxvu6tFPTU8ygSPj9vyEadf9DsqTwy3D",
  • "values": [
    ],
  • "oracle_pubkey_hash": "6o6ul2c+sqAariBVW+CwNaSJb9w="
}

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "hex_tx": "00013ff00000000000005c3899fc0000000000000000000100010002005d9e609fb85c512ac590221aed8cc5e7b7f646a4511e61ec401eba7bda794bd30002bb171de3490828028ec5eef3325956acb6bcffa6a50466bb9a81d38363c25d9e609fb85c512ac590221aed8cc5e7b7f646a4511e61ec401eba7bda794bd300007b1007736f6d655f6964045bfc631902012c473045022067aa6e62d123a96b817332e2c40480af781799b5e2854be59ee82cb54823b054022100a4a4ccb96970bf0b39ef8fa3b6a296e7f02e1fe2020f4bbe1f23321ded1aae27210309a5a288617b2f1685a8dd0d4460bdb935cf72475f6bf10d2063cfdb86f70129000007d000001976a914f7934a91973cd100d753304f9a98267c8d4e6c0a88ac00000000"
}

Update a match value nano contract

Returns the hexadecimal of the updated nano contract

Request Body schema: application/json
required

Data to update the nano contract

hex_tx
required
string

Nano contract transaction being updated in hexadecimal

required
Array of objects (NanoContractBet)

New list of bets

input_value
required
integer

New amount this wallet should stake in the nano contract

Responses

Request samples

Content type
application/json
{
  • "new_values": [
    ],
  • "input_value": 2000,
  • "hex_tx": "000100000000000000005c38a2bd00000000000000000001000200000075b16110c1bb244c6b8f23882c1846c1f6ec4e03427ecb676549381cecf11711000000000007d000006676a914ea8eae97673eb2a01aae20555be0b035a4896fdc88ba5007736f6d655f6964c0510400000001c15219007abc3b0c0425d3065c43f6bccdc16aa871f3bbad9ced28f002012c1900f7934a91973cd100d753304f9a98267c8d4e6c0a5554da250101d1d0ffffffff00001976a914fd05059b6006249543b82f36876a17c73fd2267b88ac00000000"
}

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "hex_tx": "00013ff00000000000005c3899fc0000000000000000000100010002005d9e609fb85c512ac590221aed8cc5e7b7f646a4511e61ec401eba7bda794bd30002bb171de3490828028ec5eef3325956acb6bcffa6a50466bb9a81d38363c25d9e609fb85c512ac590221aed8cc5e7b7f646a4511e61ec401eba7bda794bd300007b1007736f6d655f6964045bfc631902012c473045022067aa6e62d123a96b817332e2c40480af781799b5e2854be59ee82cb54823b054022100a4a4ccb96970bf0b39ef8fa3b6a296e7f02e1fe2020f4bbe1f23321ded1aae27210309a5a288617b2f1685a8dd0d4460bdb935cf72475f6bf10d2063cfdb86f70129000007d000001976a914f7934a91973cd100d753304f9a98267c8d4e6c0a88ac00000000"
}

wallet

Balance of an address

query Parameters
address
required
string

Address to get balance

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "total_transactions": 5,
  • "tokens_data": {
    }
}

History of some addresses. Important note: different requests (even pagination requests) may return the same transaction for different addresses. We just validate if a transactions was already added in the same request.

query Parameters
addresses[]
required
string

Stringified array of addresses

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "has_more": true,
  • "first_hash": "00000299670db5814f69cede8b347f830f73985eaa4cd1ce87c9a7c793771332",
  • "first_address": "1Pz5s5WVL52MK4EwBy9XVQUzWjF2LWWKiS",
  • "history": [
    ]
}

Send tokens

Request Body schema: application/json
required

Data to create the transaction

tx_hex
required
string

Serialized transaction in hexadecimal before parents and pow

Responses

Request samples

Content type
application/json
{
  • "tx_hex": "00000c064ec72c8561a24b65bd50095a401b8d9a66c360cfe99cfcfeed73afc4"
}

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "message": "",
  • "tx": {
    }
}

Get history transactions of a token

query Parameters
count
int

Quantity of elements to return

page
string

If the user clicked "previous" or "next" button

hash
string

Hash reference for the pagination

timestamp
integer

Timestamp reference for the pagination

id
required
string

Token id

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "transactions": [
    ],
  • "has_more": true
}

Get information about a token if send token ID, otherwise return list of tokens

query Parameters
id
required
string

Token id

Responses

Response samples

Content type
application/json
Example
{
  • "success": true,
  • "name": "MyCoin",
  • "symbol": "MYC",
  • "mint": [
    ],
  • "melt": [
    ],
  • "total": 50000,
  • "transactions_count": 3
}