Software development kit for building applications on the Arta Blockchain.
Early-stage SDK. Currently provides a minimal client wrapper (ArtaClient) for reading chain
state over JSON-RPC. Transaction signing/broadcasting and contract helpers are planned — see
Roadmap.
npm install arta-sdkconst { ArtaClient } = require("arta-sdk");
const client = new ArtaClient(); // uses default public RPC
const block = await client.getBlockNumber();
console.log(block);See examples/basic-usage.js for a runnable example.
| Method | Description |
|---|---|
getBlockNumber() |
Returns the current head block number |
getBalance(address) |
Returns the balance (wei) of an address |
getBlock(blockHashOrNumber) |
Returns block data |
MIT