Complete reference for integrating with the Westue blockchain network
{
"chain_id": 1,
"protocol_version": 1,
"height": 12345,
"hash_hex": "abc123...",
"emergency_halt": false
}
ok
GET /block/100
{
"header": {
"chain_id": 1,
"height": 100,
"prev_hash": "...",
"timestamp_ms": 1737000000000,
"tx_root": "...",
"proposer": "..."
},
"tx_count": 5,
"tx_hashes": ["...", "..."]
}
| Parameter | Type | Description |
|---|---|---|
| fromoptional | number | Starting block height (default: 0) |
| limitoptional | number | Number of blocks (default: 100, max: 1000) |
GET /blocks?from=100&limit=50
{
"blocks": [
{
"height": 100,
"hash": "...",
"prev_hash": "...",
"timestamp_ms": 1737000000000,
"tx_count": 5
}
],
"count": 50
}
GET /tx/abc123...
{
"tx_hash": "abc123...",
"from": "def456...",
"to": "ghi789...",
"amount": 1000000,
"fee": 1000,
"nonce": 5,
"timestamp_ms": 1737000000000,
"block_height": 123,
"confirmations": 456
}
{
"tx": {
"from": "...",
"to": "...",
"amount": 1000000,
"fee": 1000,
"nonce": 5,
"timestamp_ms": 1737000000000,
"pubkey": [...],
"sig": [...]
}
}
{
"accepted": true,
"tx_hash": "abc123..."
}
GET /account/abc123...
{
"address": "abc123...",
"balance": 1000000,
"nonce": 5,
"tx_count": 10
}
GET /balance/abc123...
{
"address": "abc123...",
"balance": 1000000,
"nonce": 5
}
{
"validators": [
{
"pubkey_hex": "...",
"address": "...",
"is_active": true
}
]
}
{
"total_supply": 1000000000,
"circulating_supply": 999999999,
"burned_supply": 0
}
{
"head_height": 12345,
"mempool_size": 10,
"blocks_applied_total": 12345,
"blocks_produced_total": 4000,
"tx_accepted_total": 100000,
"tx_rejected_total": 100
}
amount: 1000000 = 1,000,000 whole coinsfee: 1 = 1 whole coin (minimum fee)1 WST = 1 base unit (no decimals)
Addresses are 32-byte values encoded as 64-character hex strings.
Example: 1111111111111111111111111111111111111111111111111111111111111111
| Status Code | Description |
|---|---|
| 400 | Bad Request - Invalid request |
| 404 | Not Found - Resource not found |
| 429 | Too Many Requests - Rate limit exceeded |
| 413 | Payload Too Large - Request body too large |
| 500 | Internal Server Error - Server error |