The ndau API provides an http interface to an ndau node. It is used to prevalidate and submit transactions, and to retrieve information about the ndau blockchain’s system variables, price information, transactions, blocks, and accounts.
All ndau API Endpoints are documented here in GitHub.
For a detailed overview of all ndau transaction input and output data, please see the TechDoc “ndau transactions and the ndau API.”
Here are some examples for querying the ndau blockchain using Python scripts and API endpoints.
ndau is a decentralized network since anyone can run a validator node. Use the /node/consensus endpoint to see the voting power of all validator nodes for the current block and to find your node’s entry via your validator node’s Tendermint Address. You can also use the /node/consensus endpoint to determine the total number of validator nodes currently on the network.
Oneiro runs a subset of all validator nodes on the network, and all of Oneiro’s nodes have publicly available API ports.
Validator Nodes on MainNet managed by Oneiro:
- https://mainnet-0.ndau.tech:3030/node/status
Tendermint address: 84F5AA45F947FA6D1D7ADD174234D2E2C11D659D - https://mainnet-1.ndau.tech:3030/node/status
Tendermint address: E4956510A438ECB1C725F339D59E7D74BE438CCA - https://mainnet-2.ndau.tech:3030/node/status
Tendermint address: 5B3E2F2D9DC67642AFF5CFD7F25CF6D40F7374BF - https://mainnet-3.ndau.tech:3030/node/status
Tendermint address: 009864BEFCB7BEECAC4B3A21C890EA268E884577 - https://mainnet-4.ndau.tech:3030/node/status
Tendermint address: 83C94D9D82CC455A36EE4E3DF0D6642149276EF9
Validator Nodes on TestNet managed by Oneiro:
- https://testnet-0.ndau.tech:3030/node/status
- https://testnet-1.ndau.tech:3030/node/status
- https://testnet-2.ndau.tech:3030/node/status
- https://testnet-3.ndau.tech:3030/node/status
- https://testnet-4.ndau.tech:3030/node/status