Getting Started
adamant-console is a command-line and JSON-RPC tool for interacting with the ADAMANT blockchain. It signs ADM transactions locally and submits signed payloads to configured ADAMANT nodes.
Use Console when you need to:
- Inspect account, block, transaction, chat, delegate, and node data
- Send ADM, messages, rich messages, and signal messages
- Register delegates and vote for delegates
- Expose Console behavior through a local JSON-RPC server
Requirements
- Node.js 22.13.0 or newer
- npm 10 or newer
Install Dependencies
For repository development:
sh
npm ci --ignore-scriptsIf dependency metadata changes and the lockfile must be updated:
sh
npm install --ignore-scriptsDo not enable lifecycle scripts globally. If a dependency requires a trusted build step, run a targeted documented rebuild for that package only.
Initialize Config
Create a user config:
sh
node bin/adamant.js initBy default, Console writes ~/.adm/config.jsonc. A local config.jsonc in the current working directory can also override defaults for development.
Run Console
Interactive prompt:
sh
node bin/adamant.jsOne-shot command:
sh
node bin/adamant.js node heightInstalled npm binary:
sh
adm node heightJSON-RPC daemon:
sh
node bin/adamant.js rpc serverNext Steps
- Review Installation
- Set up Configuration
- Read the Security guide
- Browse the CLI reference