# Packages
No description provided by the author
Package bank is mainly used to transfer coins between accounts,query account balances, and implement interface rpc.BankI
As a quick start:
TransferNFT coins to other account
client := test.NewClient() amt := types.NewIntWithDecimal(1, 18) coins := types.NewCoins(types.NewCoin("point", amt)) to := "iaa1rgnu8grzt6mwnjg7jss7w0sfyjn67g4et0hzfz" baseTx := types.BaseTx{ From: "test1", Gas: 20000, Memo: "test", Mode: types.Commit, } result,err := client.BankI.Send(to,coins,baseTx) fmt.Println(result)
BurnNFT some coins from your account
client := test.NewClient() amt := types.NewIntWithDecimal(1, 18) coins := types.NewCoins(types.NewCoin("point", amt)) baseTx := types.BaseTx{ From: "test1", Gas: 20000, Memo: "test", Mode: types.Commit, } result,err := client.BankI.BurnNFT(coins, baseTx) fmt.Println(result)
Set account memo
client := test.NewClient() result,err := client.BankI.SetMemoRegexp("testMemo", baseTx) fmt.Println(result)
Queries account information
client := test.NewClient() result,err := client.BankI.QueryAccount("iaa1rgnu8grzt6mwnjg7jss7w0sfyjn67g4et0hzfz") fmt.Println(result)
Queries the token information
client := test.NewClient() result,err := client.BankI.QueryTokenStats("point") fmt.Println(result)
.
Package keys allows you to manage your local tendermint keystore (wallets) for iris.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package service bridge the gap between the blockchain world and the conventional business application world, by mediating a complete lifecycle of off-chain services -- from their definition, binding (provider registration), invocation, to their governance (profiling and dispute resolution).
No description provided by the author
# Functions
NewBaseClient return the baseClient for every sub modules.
No description provided by the author
NewLocker implement the function of lock, can lock resources according to conditions.
No description provided by the author