bytom-node-sdk: Repository summary
Node.js SDK for Bytom protocol
Recent Commits RSS
Recently edited Tags
Bytom Node.js SDK
Cryptographic keys are the primary authorization mechanism on a blockchain.
To create accounts or assets, xpub of keys are required. With this sdk, we can
An account is an object in Bytom that tracks ownership of assets on a blockchain. It's defined under one Bytom node created with one or serveral keys.
An asset is a type of value that can be issued on a blockchain. All units of a given asset are fungible. Units of an asset can be transacted directly between parties without the involvement of the issuer.
Blockchain is chain of blocks, while block consists of numbers of transactions.
Bytom is UTXO based blockchain. One transaction spend some UTXOs, and produces new UTXOs.
Any balance on the blockchain is simply a summation of UTXOs. In one bytomd, balance means summation of UTXOs of one account.
A block is a container data structure that aggregates transactions for inclusion in the public ledger, the blockchain. It is made of a header, containing metadata, followed by a long list of transactions that make up the bulk of its size. Each block references to the previous block, and all the blocks are linked from the back to the front to grow a blockchain.
Config contain the network information that you wanted to know.
In your code
Interaction with bytom
We will walk you through the process to issue some assets.
Step 1: create a key
It will create a key whose alias is 'alias' while password is 'password'.
Step 2: create a account
Step 3: create account address
Step 4: create asset
Step 5: issue asset
First, build the transaction
Second, sign the transaction
Finally, submit the signed transaction to the bytom network