Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

The Newcoin Protocol reinvents social creativity by embedding NFT, DAO and DeFi stake pools natively at the core of a highly scalable and cross-chain protocol.

License

Notifications You must be signed in to change notification settings

neftyblocks/newcoin-sdk

 
 

Repository files navigation

newcoin-sdk

Newcoin This is the newcoin sdk, a starting point for a tooling environment that will make it easy to build applications on top of https://newcoin.org.

npm install --save @newfound8ion/newcoin-sdk

See https://docs.newcoin.org/ for an overview of the newcoin ecosystem.

Installation

Clone the repo. An npm package will be provided soon

See the tests for more examples.

API Documentation

See here

Usage

function async createUser() {
            const nco_struct : NCCreateUser = {
                newUser: name, 
                newacc_public_active_key: "<active-key>",
                newacc_public_owner_key:  "<owner-key>",
                payer: "io", 
                payer_prv_key: "<prv_key>",
                ram_amt : 8196, 
                cpu_amount : "100.0000 NCO", 
                net_amount : "100.0000 NCO", 
                xfer : true, // stake or transfer CPU/NET to the account
            };
            const resp :NCReturnTxs = await NCO_BlockchainAPI.createUser(nco_struct) ;
}

See the tests for more examples.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

The Newcoin Protocol reinvents social creativity by embedding NFT, DAO and DeFi stake pools natively at the core of a highly scalable and cross-chain protocol.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.2%
  • JavaScript 0.8%