Hathor API (0.59.0)
Download OpenAPI specification:Download
Run full node profiler
Request Body schema: application/jsonrequired
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
- Payload
{- "start": true
}
Response samples
- 200
{- "success": true
}
Response samples
- 200
{- "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
}
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:
- Whether the fullnode has recent block activity, i.e. if the fullnode has blocks with recent timestamps.
- 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
- 200
- 503
{- "status": "pass",
- "description": "Hathor-core v0.56.0",
- "checks": {
- "sync": [
- {
- "componentName": "sync",
- "componentType": "internal",
- "status": "pass",
- "output": "Healthy"
}
]
}
}
Add p2p peers
Connect to the given peers
Request Body schema: application/jsonrequired
Peers you want to connect to
Responses
Request samples
- Payload
[- "tcp:localhost:8000",
- "tcp:17.24.137.234:40403"
]
Response samples
- 200
{- "success": true,
- "peers": [
- "tcp:localhost:8000",
- "tcp:17.24.137.234:40403"
]
}
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:
- Whether the fullnode has recent block activity, i.e. if the fullnode has blocks with recent timestamps.
- 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
- 200
- 503
{- "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
- 200
- 503
{- "parents": [
- "0001e298570e37d46f9101bcf903bde67186f26a83d88b9cb196f38b49623457",
- "00002b3be4e3876e67b5e090d76dcd71cde1a30ca1e54e38d65717ba131cd22f",
- "0002bb171de3490828028ec5eef3325956acb6bcffa6a50466bb9a81d38363c2"
], - "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/jsonrequired
Data to be propagated
block_bytes required | string Bytes of block after pow in base 64 |
Responses
Request samples
- Payload
{- "block_bytes": "AAFALAAAAAAAAFw3iaUAAAAAAAAAAgAAAAEAAwAAAeKYVw431G+RAbz5A73mcYbyaoPYi5yxlvOLSWI0VwAAKzvk44duZ7XgkNdtzXHN4aMMoeVOONZXF7oTHNIvAAK7Fx3jSQgoAo7F7vMyWVastrz/pqUEZruagdODY8IAAAfQAAAZdqkU0AoLEAX+1b36s+VyaMc9bkj/5byIrAAAEa8="
}
Response samples
- 200
null
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
- 200
{- "rules": [
- {
- "uuid": "93095688-8ad5-4b9a-ab6b-c9e7b6d1fab5",
- "chain": {
- "name": "post_peerid",
- "table": {
- "name": "filter"
}, - "policy": {
- "type": "NetfilterAccept",
- "target_params": { }
}
}, - "target": {
- "type": "NetfilterReject",
- "target_params": { }
}, - "match": {
- "type": "NetfilterMatchPeerId",
- "match_params": {
- "peer_id": "f7397705bc07aabf6fc3f68de6605d93b560bc832d9ebbdfb0d3bd41e1f9480b"
}
}
}, - {
- "uuid": "93095688-8ad5-4b9a-ab6b-c9e7b6d1fab5",
- "chain": {
- "name": "post_peerid",
- "table": {
- "name": "filter"
}, - "policy": {
- "type": "NetfilterAccept",
- "target_params": { }
}
}, - "target": {
- "type": "NetfilterLog",
- "target_params": {
- "msg": "Wat"
}
}, - "match": {
- "type": "NetfilterMatchPeerId",
- "match_params": {
- "peer_id": "f7397705bc07aabf6fc3f68de6605d93b560bc832d9ebbdfb0d3bd41e1f9480b"
}
}
}
]
}
Add p2p netfilter rule
Add netfilter rules.
Request Body schema: application/jsonrequired
Netfilter rule data to add.
chain | any |
match | any |
match_params | any |
target | any |
target_params | any |
Responses
Request samples
- Payload
{- "chain": {
- "name": "post_peerid"
}, - "target": {
- "type": "NetfilterReject",
- "target_params": { }
}, - "match": {
- "type": "NetfilterMatchPeerId",
- "match_params": {
- "peer_id": "f7397705bc07aabf6fc3f68de6605d93b560bc832d9ebbdfb0d3bd41e1f9480b"
}
}
}
Response samples
- 200
{- "success": true,
- "uuid": "93095688-8ad5-4b9a-ab6b-c9e7b6d1fab5",
- "chain": {
- "name": "post_peerid",
- "table": {
- "name": "filter"
}, - "policy": {
- "type": "NetfilterAccept",
- "target_params": { }
}
}, - "target": {
- "type": "NetfilterReject",
- "target_params": { }
}, - "match": {
- "type": "NetfilterMatchPeerId",
- "match_params": {
- "peer_id": "f7397705bc07aabf6fc3f68de6605d93b560bc832d9ebbdfb0d3bd41e1f9480b"
}
}
}
Delete p2p netfilter rule
Delete netfilter rules.
Request Body schema: application/jsonrequired
Netfilter rule data to delete.
chain | any |
match | any |
match_params | any |
target | any |
target_params | any |
Responses
Request samples
- Payload
{- "chain": "post_peerid",
- "rule_uuid": "93095688-8ad5-4b9a-ab6b-c9e7b6d1fab5"
}
Response samples
- 200
{- "success": true
}
Response samples
- 200
{- "server": {
- "id": "5578ab3bcaa861fb9d07135b8b167dd230d4487b147be8fd2c94a79bd349d123",
- "app_version": "Hathor v0.14.0-beta",
- "state": "READY",
- "network": "testnet",
- "uptime": 118.37029600143433,
- "entrypoints": [
- "tcp:localhost:8000"
]
}, - "known_peers": [ ],
- "connections": {
- "connected_peers": [
- {
- "id": "5578ab3bcaa861fb9d07135b8b167dd230d4487b147be8fd2c94a79bd349d123",
- "app_version": "Hathor v0.14.0-beta",
- "uptime": 118.37029600143433,
- "address": "192.168.1.1:54321",
- "state": "READY",
- "last_message": 1539271481,
- "plugins": {
- "node-sync-timestamp": {
- "is_enabled": true,
- "latest_timestamp": 1685310912,
- "synced_timestamp": 1685310912
}
}, - "warning_flags": [
- "no_entrypoints"
], - "protocol_version": "sync-v1.1",
- "peer_best_blockchain": [
- [
- 59,
- "0000045de9ac8365c43ccc96222873cb80c340c6c9c8949b56d2e2e51b6a3dbe"
]
]
}
], - "handshaking_peers": [
- {
- "address": "192.168.1.1:54321",
- "state": "HELLO",
- "uptime": 0.0010249614715576172,
- "app_version": "Unknown"
}
], - "connecting_peers": [
- {
- "deferred": "<bound method TCP4ClientEndpoint.connect of <twisted.internet.endpoints.TCP4ClientEndpoint object at 0x10b16b470>>",
- "address": "192.168.1.1:54321"
}
]
}, - "dag": {
- "first_timestamp": 1539271481,
- "latest_timestamp": 1539271483,
- "best_block_tips": [
- {
- "hash": "000007eb968a6cdf0499e2d033faf1e163e0dc9cf41876acad4d421836972038",
- "height": 0
}
], - "best_block": {
- "hash": "000007eb968a6cdf0499e2d033faf1e163e0dc9cf41876acad4d421836972038",
- "height": 0
}, - "best_blockchain": [
- [
- 59,
- "0000045de9ac8365c43ccc96222873cb80c340c6c9c8949b56d2e2e51b6a3dbe"
]
]
}
}
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
- 200
{- "rules": [
- {
- "uuid": "93095688-8ad5-4b9a-ab6b-c9e7b6d1fab5",
- "chain": {
- "name": "post_peerid",
- "table": {
- "name": "filter"
}, - "policy": {
- "type": "NetfilterAccept",
- "target_params": { }
}
}, - "target": {
- "type": "NetfilterReject",
- "target_params": { }
}, - "match": {
- "type": "NetfilterMatchPeerId",
- "match_params": {
- "peer_id": "f7397705bc07aabf6fc3f68de6605d93b560bc832d9ebbdfb0d3bd41e1f9480b"
}
}
}, - {
- "uuid": "93095688-8ad5-4b9a-ab6b-c9e7b6d1fab5",
- "chain": {
- "name": "post_peerid",
- "table": {
- "name": "filter"
}, - "policy": {
- "type": "NetfilterAccept",
- "target_params": { }
}
}, - "target": {
- "type": "NetfilterLog",
- "target_params": {
- "msg": "Wat"
}
}, - "match": {
- "type": "NetfilterMatchPeerId",
- "match_params": {
- "peer_id": "f7397705bc07aabf6fc3f68de6605d93b560bc832d9ebbdfb0d3bd41e1f9480b"
}
}
}
]
}
Add p2p netfilter rule
Add netfilter rules.
Request Body schema: application/jsonrequired
Netfilter rule data to add.
chain | any |
match | any |
match_params | any |
target | any |
target_params | any |
Responses
Request samples
- Payload
{- "chain": {
- "name": "post_peerid"
}, - "target": {
- "type": "NetfilterReject",
- "target_params": { }
}, - "match": {
- "type": "NetfilterMatchPeerId",
- "match_params": {
- "peer_id": "f7397705bc07aabf6fc3f68de6605d93b560bc832d9ebbdfb0d3bd41e1f9480b"
}
}
}
Response samples
- 200
{- "success": true,
- "uuid": "93095688-8ad5-4b9a-ab6b-c9e7b6d1fab5",
- "chain": {
- "name": "post_peerid",
- "table": {
- "name": "filter"
}, - "policy": {
- "type": "NetfilterAccept",
- "target_params": { }
}
}, - "target": {
- "type": "NetfilterReject",
- "target_params": { }
}, - "match": {
- "type": "NetfilterMatchPeerId",
- "match_params": {
- "peer_id": "f7397705bc07aabf6fc3f68de6605d93b560bc832d9ebbdfb0d3bd41e1f9480b"
}
}
}
Delete p2p netfilter rule
Delete netfilter rules.
Request Body schema: application/jsonrequired
Netfilter rule data to delete.
chain | any |
match | any |
match_params | any |
target | any |
target_params | any |
Responses
Request samples
- Payload
{- "chain": "post_peerid",
- "rule_uuid": "93095688-8ad5-4b9a-ab6b-c9e7b6d1fab5"
}
Response samples
- 200
{- "success": true
}
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
- 200
{- "success": true,
- "block": {
- "tx_id": "080c8086376ab7105d17df1127a68ededf54029a21b5d98841448cc23b5123ff",
- "version": 0,
- "weight": 1,
- "timestamp": 1616094323,
- "is_voided": false,
- "inputs": [ ],
- "outputs": [
- {
- "value": 6400,
- "token_data": 0,
- "script": "dqkU4yipgEZjbphR/M3gUGjsbyb1s76IrA==",
- "decoded": {
- "type": "P2PKH",
- "address": "HTEEV9FJeqBCYLUvkEHsWAAi6UGs9yxJKj",
- "timelock": null
}, - "token": "00",
- "spent_by": null
}
], - "parents": [
- "339f47da87435842b0b1b528ecd9eac2495ce983b3e9c923a37e1befbe12c792",
- "16ba3dbe424c443e571b00840ca54b9ff4cff467e10b6a15536e718e2008f952",
- "33e14cb555a96967841dcbe0f95e9eab5810481d01de8f4f73afb8cce365e869"
], - "height": 1
}
}
Create unsigned unmined raw transaction
Request Body schema: application/jsonrequired
Inputs and outputs to use
Array of objects (TxInput) | |
Array of AddressOutput (object) or ScriptOutput (object) |
Responses
Request samples
- Payload
{- "inputs": [
- {
- "tx_id": "000005551d7740fd7d3c0acc50b5677fdd844f1225985aa431e1712af2a2fd89",
- "index": 1
}
], - "outputs": [
- {
- "address": "HNXsVtRUmwDCtpcCJUrH4QiHo9kUKx199A",
- "value": 5600
}
]
}
Response samples
- 200
{- "success": true,
- "hex_data": "0001000101000005551d7740fd7d3c0acc50b5677fdd844f1225985aa431e1712af2a2fd89010000000015e000001976a914afa600556bf43ece9b8e0486baa31bd46a82c3af88ac40310c373eed982e5f63d94d0200000000b0e8be665f308f1d48d2201060846203280062b1cccc4e3d657486e90000000071c0d2cafa192b421bb5727c84174c999f9400d3be74331e7feba08a00000000",
- "data": {
- "timestamp": 1600379213,
- "version": 1,
- "weight": 17.047717984205683,
- "parents": [
- "00000000b0e8be665f308f1d48d2201060846203280062b1cccc4e3d657486e9",
- "0000000071c0d2cafa192b421bb5727c84174c999f9400d3be74331e7feba08a"
], - "inputs": [
- {
- "tx_id": "000005551d7740fd7d3c0acc50b5677fdd844f1225985aa431e1712af2a2fd89",
- "index": 1,
- "data": ""
}
], - "outputs": [
- {
- "value": 5600,
- "token_data": 0,
- "script": "dqkUr6YAVWv0Ps6bjgSGuqMb1GqCw6+IrA=="
}
], - "tokens": [ ]
}
}
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
- 200
{- "success": true,
- "transactions": [
- {
- "tx_id": "0002bb171de3490828028ec5eef3325956acb6bcffa6a50466bb9a81d38363c2",
- "timestamp": 1539271483,
- "version": 1,
- "weight": 14,
- "parents": [
- "00000b8792cb13e8adb51cc7d866541fc29b532e8dec95ae4661cf3da4d42cb4",
- "00001417652b9d7bd53eb14267834eab08f27e5cbfaca45a24370e79e0348bb9"
], - "inputs": [ ],
- "outputs": [ ],
- "tokens": [ ]
}, - {
- "tx_id": "00002b3be4e3876e67b5e090d76dcd71cde1a30ca1e54e38d65717ba131cd22f",
- "timestamp": 1539271482,
- "version": 1,
- "weight": 14,
- "parents": [
- "00000b8792cb13e8adb51cc7d866541fc29b532e8dec95ae4661cf3da4d42cb5",
- "00001417652b9d7bd53eb14267834eab08f27e5cbfaca45a24370e79e0348bb1"
], - "inputs": [ ],
- "outputs": [ ],
- "tokens": [ ]
}
], - "blocks": [
- {
- "tx_id": "0001e29bf6271d15a6c89bffdf99a94351007a3aeb63a113d33493ce28b9de19",
- "timestamp": 1547143591,
- "height": 1233,
- "version": 1,
- "weight": 14,
- "parents": [
- "00035e46a20d0ecbda0dc6fdcaa243e93a7120baa8c90739e0d011370576de83",
- "0002bb171de3490828028ec5eef3325956acb6bcffa6a50466bb9a81d38363c2",
- "00002b3be4e3876e67b5e090d76dcd71cde1a30ca1e54e38d65717ba131cd22f"
], - "inputs": [ ],
- "outputs": [
- {
- "value": 2000,
- "script": "dqkUixvdsajkV6vO+9Jjgjbaheqn016IrA=="
}
], - "tokens": [ ]
}, - {
- "tx_id": "00035e46a20d0ecbda0dc6fdcaa243e93a7120baa8c90739e0d011370576de83",
- "timestamp": 1547143590,
- "height": 1234,
- "version": 1,
- "weight": 14,
- "parents": [
- "000133cc80b625b1babbd454edc3474e0a130dafee5d359c52aabcee3d1193ee",
- "0002bb171de3490828028ec5eef3325956acb6bcffa6a50466bb9a81d38363c2",
- "00002b3be4e3876e67b5e090d76dcd71cde1a30ca1e54e38d65717ba131cd22f"
], - "inputs": [ ],
- "outputs": [
- {
- "value": 2000,
- "script": "dqkUdNQbj29Md1xsAYinK+RsDJCCB7eIrA=="
}
], - "tokens": [ ]
}, - {
- "tx_id": "000133cc80b625b1babbd454edc3474e0a130dafee5d359c52aabcee3d1193ee",
- "timestamp": 1547143589,
- "height": 1235,
- "version": 1,
- "weight": 14,
- "parents": [
- "0001e298570e37d46f9101bcf903bde67186f26a83d88b9cb196f38b49623457",
- "00002b3be4e3876e67b5e090d76dcd71cde1a30ca1e54e38d65717ba131cd22f",
- "0002bb171de3490828028ec5eef3325956acb6bcffa6a50466bb9a81d38363c2"
], - "inputs": [ ],
- "outputs": [
- {
- "value": 2000,
- "script": "dqkU0AoLEAX+1b36s+VyaMc9bkj/5byIrA=="
}
], - "tokens": [ ]
}
]
}
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
- 200
{- "tx": {
- "hash": "00002b3be4e3876e67b5e090d76dcd71cde1a30ca1e54e38d65717ba131cd22f",
- "nonce": "17076",
- "timestamp": 1539271482,
- "version": 1,
- "weight": 14,
- "parents": [ ],
- "inputs": [
- {
- "value": 42500000044,
- "script": "dqkURJPA8tDMJHU8tqv3SiO18ZCLEPaIrA==",
- "decoded": {
- "type": "P2PKH",
- "address": "17Fbx9ouRUD1sd32bp4ptGkmgNzg7p2Krj",
- "timelock": null
}, - "token": "00",
- "tx": "000002d28696f94f89d639022ae81a1d870d55d189c27b7161d9cb214ad1c90c",
- "index": 0
}
], - "outputs": [ ],
- "tokens": [ ]
}, - "meta": {
- "hash": "00002b3be4e3876e67b5e090d76dcd71cde1a30ca1e54e38d65717ba131cd22f",
- "spent_outputs": [
- [
- "0",
- [
- "00002b3be4e3876e67b5e090d76dcd71cde1a30ca1e54e38d65717ba131cd22e"
]
], - [
- "1",
- [
- "00002b3ce4e3876e67b5e090d76dcd71cde1a30ca1e54e38d65717ba131cd22e"
]
]
], - "received_by": [ ],
- "children": [
- "00002b3ee4e3876e67b5e090d76dcd71cde1a30ca1e54e38d65717ba131cd22d"
], - "conflict_with": [ ],
- "voided_by": [ ],
- "twins": [ ],
- "accumulated_weight": 10,
- "score": 12,
- "first_block": null
}, - "spent_outputs": {
- "0": "00002b3ce4e3876e67b5e090d76dcd71cde1a30ca1e54e38d65717ba131cd22e"
}, - "success": true
}
Decode transaction
query Parameters
hex_tx required | string Transaction to be decoded in hexadecimal |
Responses
Response samples
- 200
{- "tx": {
- "hash": "00002b3be4e3876e67b5e090d76dcd71cde1a30ca1e54e38d65717ba131cd22f",
- "nonce": 17076,
- "timestamp": 1539271482,
- "version": 1,
- "weight": 14,
- "parents": [ ],
- "inputs": [
- {
- "value": 42500000044,
- "script": "dqkURJPA8tDMJHU8tqv3SiO18ZCLEPaIrA==",
- "decoded": {
- "type": "P2PKH",
- "address": "17Fbx9ouRUD1sd32bp4ptGkmgNzg7p2Krj",
- "timelock": null
}, - "token": "00",
- "tx": "000002d28696f94f89d639022ae81a1d870d55d189c27b7161d9cb214ad1c90c",
- "index": 0
}
], - "outputs": [ ],
- "tokens": [ ]
}, - "meta": {
- "hash": "00002b3be4e3876e67b5e090d76dcd71cde1a30ca1e54e38d65717ba131cd22f",
- "spent_outputs": [
- [
- "0",
- [
- "00002b3be4e3876e67b5e090d76dcd71cde1a30ca1e54e38d65717ba131cd22e"
]
], - [
- "1",
- [
- "00002b3ce4e3876e67b5e090d76dcd71cde1a30ca1e54e38d65717ba131cd22e"
]
]
], - "received_by": [ ],
- "children": [
- "00002b3ee4e3876e67b5e090d76dcd71cde1a30ca1e54e38d65717ba131cd22d"
], - "conflict_with": [ ],
- "voided_by": [ ],
- "twins": [ ],
- "accumulated_weight": 10,
- "score": 12,
- "first_block": null
}, - "spent_outputs": {
- "0": "00002b3ce4e3876e67b5e090d76dcd71cde1a30ca1e54e38d65717ba131cd22e"
}, - "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
- 200
{ }
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
- 200
{ }
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
- 200
{- "accumulated_weight": 15.4,
- "confirmation_level": 0.88,
- "stop_value": 14.5,
- "accumulated_bigger": true,
- "success": true
}
Response samples
- 200
{- "success": true,
- "transactions": [
- "339f47da87435842b0b1b528ecd9eac2495ce983b3e9c923a37e1befbe12c792",
- "16ba3dbe424c443e571b00840ca54b9ff4cff467e10b6a15536e718e2008f952",
- "33e14cb555a96967841dcbe0f95e9eab5810481d01de8f4f73afb8cce365e869"
]
}
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
- 200
{- "timestamp": 0,
- "version": 0,
- "weight": 0,
- "parents": [
- "string"
], - "outputs": [
- {
- "value": 0,
- "token_data": 0,
- "script": "string"
}
]
}
Search UTXOs with given address/token/amount
For a given token-uid, address and target-amount, get a list of UTXOs that are candidates to be inputs for a total of target-value. The resulsts will try to include the first UTXO with value higher or equal value as target-amount. No more than 256 entries will ever be returned by this API.
query Parameters
token_uid required | string The UID of the token formatted as a HEX string, use "00" for HTR |
target_amount required | int The target amount that the UTXOs should sum-up to, 1 means 0.01 HTR |
address required | str The address that all UTXOs have |
target_timestamp | int What timestamp to consider for timelocked outputs, by default uses the timestamp from the current best block |
target_height | int What timestamp to consider for reward outputs (which are heightlocked), by default uses the height from the current best block |
Responses
Response samples
- 200
{- "success": true,
- "utxos": [
- {
- "txid": "339f47da87435842b0b1b528ecd9eac2495ce983b3e9c923a37e1befbe12c792",
- "index": 0,
- "amount": 1000000000,
- "timelock": null,
- "heightlock": 10
}
]
}
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
- 200
{- "history": [
- {
- "timestamp": 1547163030,
- "tx_id": "00000257054251161adff5899a451ae974ac62ca44a7a31179eec5750b0ea406",
- "index": 0,
- "value": 1909,
- "address": "1EhoiVeWRDqzyabqNhsnSzhUvhBWNWvCsg",
- "voided": false
}, - {
- "timestamp": 1547163030,
- "tx_id": "00000257054251161adff5899a451ae974ac62ca44a7a31179eec5750b0ea406",
- "index": 1,
- "value": 55,
- "address": "1Dxu6qynYeX8CmipocnYPQy8X7TaHHCtrM",
- "voided": false
}
], - "total_pages": 7
}
Send tokens
Request Body schema: application/jsonrequired
Data to create transactions
required | object | ||||||
|
Responses
Request samples
- Payload
{- "data": {
- "outputs": [
- {
- "address": "15VZc2jy1L3LGFweZeKVbWMsTzfKFJLpsN",
- "value": 1000
}, - {
- "address": "1C5xEjewerH4zTWPC6wqzhoEkMhiHEHPZ8",
- "value": 800
}
], - "inputs": [
- {
- "tx_id": "00000257054251161adff5899a451ae974ac62ca44a7a31179eec5750b0ea406",
- "index": 0
}
], - "timestamp": 1549667726
}
}
Response samples
- 200
{- "success": true,
- "message": "",
- "tx": {
- "hash": "00000c064ec72c8561a24b65bd50095a401b8d9a66c360cfe99cfcfeed73afc4",
- "nonce": 2979,
- "timestamp": 1547211690,
- "version": 1,
- "weight": 17.93619278054934,
- "parents": [
- "00000257054251161adff5899a451ae974ac62ca44a7a31179eec5750b0ea406",
- "00000b8792cb13e8adb51cc7d866541fc29b532e8dec95ae4661cf3da4d42cb4"
], - "inputs": [
- {
- "tx_id": "00000257054251161adff5899a451ae974ac62ca44a7a31179eec5750b0ea406",
- "index": 0,
- "data": "RzBFAiAh6Jq+HOn9laOq3A5uUcaGLdWB4gM6RehsaP9OIMrOrwIhAOjWT+4ceSQI8CNXqaNNJgaOzCDhmFF1z1rhxOMCgonxIQNhXZKwBZeKxJpsJEqP4gIS4FFbEpG284HhmBfp1p5gUw=="
}
], - "outputs": [
- {
- "value": 1109,
- "script": "dqkUMUdd0fmGCmGfv7B5UriM5VS5g16IrA=="
}, - {
- "value": 800,
- "script": "dqkUeZkoJssEgwjPw/1ubA9XXZNk+xGIrA=="
}
], - "tokens": [ ]
}
}
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
- 200
{- "hex_tx": "00014032dc90beef51545c37d59600000000000000000002000200020000000b8792cb13e8adb51cc7d866541fc29b532e8dec95ae4661cf3da4d42cb400001417652b9d7bd53eb14267834eab08f27e5cbfaca45a24370e79e0348bb90000088c5a4dfcef7fd3c04a5b1eccfd2de032b23749deff871b0a090000f5f601006a473045022100befd7bbe9f17c8762adfa3c594e19ded5dafcc891ff9722ea9fc949dcd9f66e8022039f033b3dd900feac2dd905cb0775a77a0b5d3aa57c82ff87eb7be85956ec49c2103ea83bcb645a9d376741c0ef167788ce3ad4cc9a0fce49a8352b6837c5ed2d3500000003398322f99355f37439e32881c83ff08b83e744e799b1d6a67f73bee4500006a473045022100a8fbc3d7c53377a36c31590631a23d46cc56a8ba30db65b52811d4516ff7e54102204514f69c4910706f5f2130600076fdb0a25b135de222efcaf41718a6926835762103c32f7899bec0d2f237450e695cbdcd849bf64d6180ce056777a195b1a6e0390d0000077500001976a9149651450c90725794e3554972dd97376c1e26307d88ac0000003700001976a9148e33e0fb3c06e890def74d48d326d0c5c00fac0b88ac000184fb",
- "success": true
}
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/jsonrequired
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
- Payload
{- "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
- 200
{- "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"
}
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
- 200
{- "success": true,
- "nano_contract": {
- "type": "NanoContractMatchValues",
- "oracle_pubkey_hash": "6o6ul2c+sqAariBVW+CwNaSJb9w=",
- "min_timestamp": 1,
- "oracle_data_id": "some_id",
- "value_dict": {
- "1Pa4MMsr5DMRAeU1PzthFXyEJeVNXsMHoz": 300
}, - "fallback_pubkey_hash": "13Y2oCMN8Lb6F3RLoPEofZz1bvX75dvEb",
- "value": 2000
}, - "outputs": [
- {
- "type": "P2PKH",
- "address": "1Q4qyTjhpUXUZXzwKs6Yvh2RNnF5J1XN9a",
- "timelock": null,
- "value": 4294967295,
- "token_data": 0
}
], - "my_inputs": [
- {
- "tx_id": "7918fd6dfe9df2abf3010b1403efbedafcc86167a5c44cf65cd525ca40ca43b7",
- "index": 0,
- "data": ""
}
], - "other_inputs": [ ]
}
Execute nano contract
Returns the hexadecimal of the propagated transaction
Request Body schema: application/jsonrequired
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
- Payload
{- "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
- 200
{- "success": true,
- "hex_tx": "00013ff00000000000005c3899fc0000000000000000000100010002005d9e609fb85c512ac590221aed8cc5e7b7f646a4511e61ec401eba7bda794bd30002bb171de3490828028ec5eef3325956acb6bcffa6a50466bb9a81d38363c25d9e609fb85c512ac590221aed8cc5e7b7f646a4511e61ec401eba7bda794bd300007b1007736f6d655f6964045bfc631902012c473045022067aa6e62d123a96b817332e2c40480af781799b5e2854be59ee82cb54823b054022100a4a4ccb96970bf0b39ef8fa3b6a296e7f02e1fe2020f4bbe1f23321ded1aae27210309a5a288617b2f1685a8dd0d4460bdb935cf72475f6bf10d2063cfdb86f70129000007d000001976a914f7934a91973cd100d753304f9a98267c8d4e6c0a88ac00000000"
}
Create a match value nano contract
Returns the hexadecimal of the created nano contract
Request Body schema: application/jsonrequired
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
- Payload
{- "oracle_data_id": "some_id",
- "total_value": 2000,
- "input_value": 2000,
- "min_timestamp": 1,
- "fallback_address": "1CBxvu6tFPTU8ygSPj9vyEadf9DsqTwy3D",
- "values": [
- {
- "address": "1Pa4MMsr5DMRAeU1PzthFXyEJeVNXsMHoz",
- "value": 300
}
], - "oracle_pubkey_hash": "6o6ul2c+sqAariBVW+CwNaSJb9w="
}
Response samples
- 200
{- "success": true,
- "hex_tx": "00013ff00000000000005c3899fc0000000000000000000100010002005d9e609fb85c512ac590221aed8cc5e7b7f646a4511e61ec401eba7bda794bd30002bb171de3490828028ec5eef3325956acb6bcffa6a50466bb9a81d38363c25d9e609fb85c512ac590221aed8cc5e7b7f646a4511e61ec401eba7bda794bd300007b1007736f6d655f6964045bfc631902012c473045022067aa6e62d123a96b817332e2c40480af781799b5e2854be59ee82cb54823b054022100a4a4ccb96970bf0b39ef8fa3b6a296e7f02e1fe2020f4bbe1f23321ded1aae27210309a5a288617b2f1685a8dd0d4460bdb935cf72475f6bf10d2063cfdb86f70129000007d000001976a914f7934a91973cd100d753304f9a98267c8d4e6c0a88ac00000000"
}
Update a match value nano contract
Returns the hexadecimal of the updated nano contract
Request Body schema: application/jsonrequired
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
- Payload
{- "new_values": [
- {
- "address": "1CBxvu6tFPTU8ygSPj9vyEadf9DsqTwy3D",
- "value": 500
}
], - "input_value": 2000,
- "hex_tx": "000100000000000000005c38a2bd00000000000000000001000200000075b16110c1bb244c6b8f23882c1846c1f6ec4e03427ecb676549381cecf11711000000000007d000006676a914ea8eae97673eb2a01aae20555be0b035a4896fdc88ba5007736f6d655f6964c0510400000001c15219007abc3b0c0425d3065c43f6bccdc16aa871f3bbad9ced28f002012c1900f7934a91973cd100d753304f9a98267c8d4e6c0a5554da250101d1d0ffffffff00001976a914fd05059b6006249543b82f36876a17c73fd2267b88ac00000000"
}
Response samples
- 200
{- "success": true,
- "hex_tx": "00013ff00000000000005c3899fc0000000000000000000100010002005d9e609fb85c512ac590221aed8cc5e7b7f646a4511e61ec401eba7bda794bd30002bb171de3490828028ec5eef3325956acb6bcffa6a50466bb9a81d38363c25d9e609fb85c512ac590221aed8cc5e7b7f646a4511e61ec401eba7bda794bd300007b1007736f6d655f6964045bfc631902012c473045022067aa6e62d123a96b817332e2c40480af781799b5e2854be59ee82cb54823b054022100a4a4ccb96970bf0b39ef8fa3b6a296e7f02e1fe2020f4bbe1f23321ded1aae27210309a5a288617b2f1685a8dd0d4460bdb935cf72475f6bf10d2063cfdb86f70129000007d000001976a914f7934a91973cd100d753304f9a98267c8d4e6c0a88ac00000000"
}
Response samples
- 200
{- "success": true,
- "total_transactions": 5,
- "tokens_data": {
- "00": {
- "name": "Hathor",
- "symbol": "HTR",
- "received": 1000,
- "spent": 800
}, - "00000828d80dd4cd809c959139f7b4261df41152f4cce65a8777eb1c3a1f9702": {
- "name": "NewCoin",
- "symbol": "NCN",
- "received": 100,
- "spent": 20
}
}
}
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
- 200
{- "success": true,
- "has_more": true,
- "first_hash": "00000299670db5814f69cede8b347f830f73985eaa4cd1ce87c9a7c793771332",
- "first_address": "1Pz5s5WVL52MK4EwBy9XVQUzWjF2LWWKiS",
- "history": [
- {
- "hash": "00000299670db5814f69cede8b347f830f73985eaa4cd1ce87c9a7c793771336",
- "timestamp": 1552422415,
- "is_voided": false,
- "parents": [
- "00000b8792cb13e8adb51cc7d866541fc29b532e8dec95ae4661cf3da4d42cb5",
- "00001417652b9d7bd53eb14267834eab08f27e5cbfaca45a24370e79e0348bb1"
], - "inputs": [
- {
- "value": 42500000044,
- "script": "dqkURJPA8tDMJHU8tqv3SiO18ZCLEPaIrA==",
- "decoded": {
- "type": "P2PKH",
- "address": "17Fbx9ouRUD1sd32bp4ptGkmgNzg7p2Krj",
- "timelock": null
}, - "token": "00",
- "tx": "000002d28696f94f89d639022ae81a1d870d55d189c27b7161d9cb214ad1c90c",
- "index": 0
}
], - "outputs": [
- {
- "value": 42499999255,
- "script": "dqkU/B6Jbf5OnslsQrvHXQ4WKDTSEGKIrA==",
- "decoded": {
- "type": "P2PKH",
- "address": "1Pz5s5WVL52MK4EwBy9XVQUzWjF2LWWKiS",
- "timelock": null
}, - "token": "00"
}, - {
- "value": 789,
- "script": "dqkUrWoWhiP+qPeI/qwfwb5fgnmtd4CIrA==",
- "decoded": {
- "type": "P2PKH",
- "address": "1GovzJvbzLw6x4H2a1hHb529cpEWzh3YRd",
- "timelock": null
}, - "token": "00"
}
]
}
]
}
Search history transactions of an address with pagination
query Parameters
address required | string Address to be searched |
count required | 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
- 200
{- "success": true,
- "transactions": [
- {
- "tx_id": "00000257054251161adff5899a451ae974ac62ca44a7a31179eec5750b0ea406",
- "timestamp": 1547163030,
- "version": 1,
- "weight": 18.861583646228,
- "parents": [
- "00000b8792cb13e8adb51cc7d866541fc29b532e8dec95ae4661cf3da4d42cb4",
- "00001417652b9d7bd53eb14267834eab08f27e5cbfaca45a24370e79e0348bb9"
], - "inputs": [
- {
- "tx_id": "0000088c5a4dfcef7fd3c04a5b1eccfd2de032b23749deff871b0a090000f5f6",
- "index": 1,
- "data": "RzBFAiEAvv17vp8XyHYq36PFlOGd7V2vzIkf+XIuqfyUnc2fZugCIDnwM7PdkA/qwt2QXLB3WnegtdOqV8gv+H63voWVbsScIQPqg7y2RanTdnQcDvFneIzjrUzJoPzkmoNStoN8XtLTUA=="
}, - {
- "tx_id": "0000003398322f99355f37439e32881c83ff08b83e744e799b1d6a67f73bee45",
- "index": 0,
- "data": "RzBFAiEAqPvD18Uzd6NsMVkGMaI9RsxWqLow22W1KBHUUW/35UECIEUU9pxJEHBvXyEwYAB2/bCiWxNd4iLvyvQXGKaSaDV2IQPDL3iZvsDS8jdFDmlcvc2Em/ZNYYDOBWd3oZWxpuA5DQ=="
}
], - "outputs": [
- {
- "value": 1909,
- "script": "dqkUllFFDJByV5TjVUly3Zc3bB4mMH2IrA=="
}, - {
- "value": 55,
- "script": "dqkUjjPg+zwG6JDe901I0ybQxcAPrAuIrA=="
}
], - "tokens": [ ],
- "height": 12345
}, - {
- "tx_id": "00000b8792cb13e8adb51cc7d866541fc29b532e8dec95ae4661cf3da4d42cb4",
- "timestamp": 1547163025,
- "version": 1,
- "weight": 17.995048894541107,
- "parents": [
- "00001417652b9d7bd53eb14267834eab08f27e5cbfaca45a24370e79e0348bb9",
- "0000088c5a4dfcef7fd3c04a5b1eccfd2de032b23749deff871b0a090000f5f6"
], - "inputs": [
- {
- "tx_id": "0000088c5a4dfcef7fd3c04a5b1eccfd2de032b23749deff871b0a090000f5f6",
- "index": 0,
- "data": "SDBGAiEA/rtsn1oQ68uGeTj/7IVtqijxoUxzr9S/u3UGAC7wQvUCIQDaYkL1R8LICfSCpYIn4xx6A+lxU0Fw3oKR1hK91fRnSiEDCoA74tfBQa4IR7iXtlz+jH9UV7+YthKX4yQNaMSMfb0="
}
], - "outputs": [
- {
- "value": 1894,
- "script": "dqkUduvtU77hZm++Pwavtl9OrOSA+XiIrA=="
}, - {
- "value": 84,
- "script": "dqkUjjPg+zwG6JDe901I0ybQxcAPrAuIrA=="
}
], - "tokens": [ ]
}
], - "has_more": true,
- "total": 10
}
Send tokens
Request Body schema: application/jsonrequired
Data to create the transaction
tx_hex required | string Serialized transaction in hexadecimal before parents and pow |
Responses
Request samples
- Payload
{- "tx_hex": "00000c064ec72c8561a24b65bd50095a401b8d9a66c360cfe99cfcfeed73afc4"
}
Response samples
- 200
{- "success": true,
- "message": "",
- "tx": {
- "hash": "00000c064ec72c8561a24b65bd50095a401b8d9a66c360cfe99cfcfeed73afc4",
- "nonce": 2979,
- "timestamp": 1547211690,
- "version": 1,
- "weight": 17.93619278054934,
- "height": 0,
- "parents": [
- "00000257054251161adff5899a451ae974ac62ca44a7a31179eec5750b0ea406",
- "00000b8792cb13e8adb51cc7d866541fc29b532e8dec95ae4661cf3da4d42cb4"
], - "inputs": [
- {
- "tx_id": "00000257054251161adff5899a451ae974ac62ca44a7a31179eec5750b0ea406",
- "index": 0,
- "data": "RzBFAiAh6Jq+HOn9laOq3A5uUcaGLdWB4gM6RehsaP9OIMrOrwIhAOjWT+4ceSQI8CNXqaNNJgaOzCDhmFF1z1rhxOMCgonxIQNhXZKwBZeKxJpsJEqP4gIS4FFbEpG284HhmBfp1p5gUw=="
}
], - "outputs": [
- {
- "value": 1109,
- "script": "dqkUMUdd0fmGCmGfv7B5UriM5VS5g16IrA=="
}, - {
- "value": 800,
- "script": "dqkUeZkoJssEgwjPw/1ubA9XXZNk+xGIrA=="
}
], - "tokens": [ ]
}
}
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
- 200
{- "success": true,
- "transactions": [
- {
- "tx_id": "00000257054251161adff5899a451ae974ac62ca44a7a31179eec5750b0ea406",
- "nonce": 99579,
- "timestamp": 1547163030,
- "version": 1,
- "weight": 18.861583646228,
- "parents": [
- "00000b8792cb13e8adb51cc7d866541fc29b532e8dec95ae4661cf3da4d42cb4",
- "00001417652b9d7bd53eb14267834eab08f27e5cbfaca45a24370e79e0348bb9"
], - "inputs": [
- {
- "tx_id": "0000088c5a4dfcef7fd3c04a5b1eccfd2de032b23749deff871b0a090000f5f6",
- "index": 1,
- "data": "RzBFAiEAvv17vp8XyHYq36PFlOGd7V2vzIkf+XIuqfyUnc2fZugCIDnwM7PdkA/qwt2QXLB3WnegtdOqV8gv+H63voWVbsScIQPqg7y2RanTdnQcDvFneIzjrUzJoPzkmoNStoN8XtLTUA=="
}, - {
- "tx_id": "0000003398322f99355f37439e32881c83ff08b83e744e799b1d6a67f73bee45",
- "index": 0,
- "data": "RzBFAiEAqPvD18Uzd6NsMVkGMaI9RsxWqLow22W1KBHUUW/35UECIEUU9pxJEHBvXyEwYAB2/bCiWxNd4iLvyvQXGKaSaDV2IQPDL3iZvsDS8jdFDmlcvc2Em/ZNYYDOBWd3oZWxpuA5DQ=="
}
], - "outputs": [
- {
- "value": 1909,
- "script": "dqkUllFFDJByV5TjVUly3Zc3bB4mMH2IrA=="
}, - {
- "value": 55,
- "script": "dqkUjjPg+zwG6JDe901I0ybQxcAPrAuIrA=="
}
], - "tokens": [ ]
}, - {
- "tx_id": "00000b8792cb13e8adb51cc7d866541fc29b532e8dec95ae4661cf3da4d42cb4",
- "nonce": 119816,
- "timestamp": 1547163025,
- "version": 1,
- "weight": 17.995048894541107,
- "parents": [
- "00001417652b9d7bd53eb14267834eab08f27e5cbfaca45a24370e79e0348bb9",
- "0000088c5a4dfcef7fd3c04a5b1eccfd2de032b23749deff871b0a090000f5f6"
], - "inputs": [
- {
- "tx_id": "0000088c5a4dfcef7fd3c04a5b1eccfd2de032b23749deff871b0a090000f5f6",
- "index": 0,
- "data": "SDBGAiEA/rtsn1oQ68uGeTj/7IVtqijxoUxzr9S/u3UGAC7wQvUCIQDaYkL1R8LICfSCpYIn4xx6A+lxU0Fw3oKR1hK91fRnSiEDCoA74tfBQa4IR7iXtlz+jH9UV7+YthKX4yQNaMSMfb0="
}
], - "outputs": [
- {
- "value": 1894,
- "script": "dqkUduvtU77hZm++Pwavtl9OrOSA+XiIrA=="
}, - {
- "value": 84,
- "script": "dqkUjjPg+zwG6JDe901I0ybQxcAPrAuIrA=="
}
], - "tokens": [ ]
}
], - "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
- 200
{- "success": true,
- "name": "MyCoin",
- "symbol": "MYC",
- "mint": [
- {
- "tx_id": "00000299670db5814f69cede8b347f830f73985eaa4cd1ce87c9a7c793771336",
- "index": 0
}
], - "melt": [
- {
- "tx_id": "00000299670db5814f69cede8b347f830f73985eaa4cd1ce87c9a7c793771336",
- "index": 1
}
], - "total": 50000,
- "transactions_count": 3
}