const {bluzelle} =require('bluzelle');constconfig= { mnemonic:"apology antique such ancient spend narrow twin banner coral book iron summer west extend toddler walnut left genius exchange globe satisfy shield case rose", endpoint:"http://testnet.public.bluzelle.com:1317", chain_id:'bluzelle', uuid:Date.now().toString()};(async () => {constbz=awaitbluzelle(config);awaitbz.create("somekey","somevalue", {'gas_price':10})console.log(awaitbz.read("somekey"))})();
Typescript
import {bluzelle, API, BluzelleConfig} from'bluzelle';constconfig:BluzelleConfig= { mnemonic:"apology antique such ancient spend narrow twin banner coral book iron summer west extend toddler walnut left genius exchange globe satisfy shield case rose", endpoint:"http://testnet.public.bluzelle.com:1317", chain_id:'bluzelle', uuid:Date.now().toString()};(async () => {constbz:API=awaitbluzelle(config);awaitbz.create("somekey","somevalue", {'gas_price':10})console.log(awaitbz.read("somekey"))})();