Node REST API#
Every DecentralChain node exposes an HTTP REST API, compatible in shape with the Dcc node API it was forked from. It’s how wallets, explorers, and SDKs read chain state (balances, blocks, transactions) and broadcast signed transactions, without needing their own indexer.
You normally don’t call this API with raw HTTP requests — use @decentralchain/node-api-js, the typed JavaScript/TypeScript client, as shown in How-To Guides. Its namespaces map directly onto the REST API’s resource areas:
Namespace |
Covers |
|---|---|
|
Address info, balances, on-chain data entries |
|
Alias lookup by address or name |
|
Asset details, distributions, balances |
|
Block headers, height, sequences |
|
Consensus algorithm parameters, generating balance |
|
Active leases, lease info |
|
Broadcast, transaction info, status, unconfirmed pool |
|
Block reward — current size and voting state |
|
Node status and version |
|
Connected, known, and blacklisted peers |
|
Ethereum-compatibility endpoints |
|
Feature activation status |
|
Hashing, seed generation, script compilation |
If you’re running your own node, point the client at its own host and port instead of a public endpoint like https://nodes.decentralchain.io — check your node’s configuration file for the REST API port it’s bound to.