Skip to content
artablokPublic

About

Software development kit for building applications on the Arta Blockchain.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arta-sdk

Software development kit for building applications on the Arta Blockchain.

Status

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.

Installation

npm install arta-sdk

Usage

const { 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.

API

Method Description
getBlockNumber() Returns the current head block number
getBalance(address) Returns the balance (wei) of an address
getBlock(blockHashOrNumber) Returns block data

Related

License

MIT

About

Software development kit for building applications on the Arta Blockchain.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages