Skip to content

Dashboard Tutorial

martinbtm edited this page Sep 6, 2021 · 1 revision

Download

Download the latest release according to your system:

download

Initialize

Open terminal for macOS and Linux users. If using windows, you could use cmd or powershell.

enter the directory where the latest bytom application are downloaded, run the following command:

$ ./bytomd init --chain_id testnet

bytomd init --chain_id testnet

--chain_id testnet means to connect to the public testnet. If you use --chain_id mainnet, it would be standalone mode.

Launch the node

$ ./bytomd node --mining

bytomd node --wallet.enable --mining

Then you could access the dashboard by visiting http://localhost:9888 via your brower.

New key

Whither creating a new account or asset, you have to create a key first, which is essential for asset and account.

new key

Let's say, new a key naming alice:

key alias: alice

alice

New account

Accounts -> New, choose an account alias, e.g., alice:

account alias: alice

Select an avaliable key for account alice:

choose a key for account alice

created account alice

New asset

Let's new an asset naming gold:

asset alias

Choose a key as well.

choose key for asset gold

created asset gold

Send Transaction

Before sending a transaction, ensure you have enough balances:

  • every transaction needs to consume at least 20,000,000 BTM gas.

balances

Transfer BTM

This section demonstrates the transaction alice sending 100000000 BTM to bob.

new transaction

There are several types of actions.

  • Spend from account: sender of transaction.
  • Control with account or Control with receiver: receiver of transaction.

Note: The prompter of trading should pay the transaction fee, i.e., at least 20,000,000 BTM gas.

spend from account

Sender(alice) pays the BTM as transaction fee:

spend from account: BTM gas

Sender(alice) wants transfer 100000000 BTM to receiver:

spend from account: alice, btm, 100000000

Configure receiver(bob) accordingly:

control with account: bob, btm, 100000000

Now, bob should have 100000000 BTM.

check out the balances

Issue and Spend Other Assets

Aside from transferring BTM, which is a native asset in the system, you can issue some new assets in Bytom, e.g., gold. Whether issuing or spending an asset, you have to build a transaction to complete, which is similar to the above instruction.

Clone this wiki locally