Getting Started

write data with our devnet nodes

Download and unzip

Download the file according to your operating system. Go to the dir and unzip the file. For example:
$ tar zxvf db3-v0.1.4-macos-x86_64.tar.gz

Connect to DevNet nodes

Four validator nodes are operated on our Devnet. Clients send transactions and read requests via endpoint using JSON-RPC.
#enter the unzip file dir and input
$ cd bin
$ ./db3 shell --public-grpc-url https://grpc.testnet.db3.network
██████╗ ██████╗ ██████╗
██╔══██╗██╔══██╗╚════██╗
██║ ██║██████╔╝ █████╔╝
██║ ██║██╔══██╗ ╚═══██╗
██████╔╝██████╔╝██████╔╝
╚═════╝ ╚═════╝ ╚═════╝
@db3.network🚀🚀🚀
WARNING, db3 will generate private key and save it to /Users/xuman/.db3/user.key
restore the key with addr 0xf0042dd61cf6387c153e31c4bb9b12801fb609ad
>account
total bills | storage used | mutation | querys | credits
0.000000 db3 | 37.00 | 1 | 0 | 10 db3

Write data

>put ns2 k1 v1 k2 v2
submit mutation to mempool done!
>account
total bills | storage used | mutation | querys | credits
0.000000 db3 | 74.00 | 2 | 0 | 10 db3

Read data

There are two ways to retrieve data in DB3.
  1. 1.
    Fetch data values once with get
>get ns2 k1 k2
k1 -> v1
k2 -> v2
  1. 1.
    Query the data in sessions

Delete data

>del ns2 k1
submit mutation to mempool done!
>get ns2 k1 k2
k2 -> v2
>account
total bills | storage used | mutation | querys | credits
156085700 tai | 2.26M | 38635 | 0 | 10 db3
Last modified 4mo ago