Documentation ¶
Overview ¶
Package client is the entrance of the entire SDK function. SDKConfig is used to configure SDK parameters.
The SDK mainly provides the functions of the following modules, including: asset, bank, distribution, gov, keys, oracle, random, service, slashing, staking
As a quick start:
fees, err := types.ParseCoins("1point") if err != nil { panic(err) } client := sdk.NewIRITAClient(types.ClientConfig{ NodeURI: NodeURI, Network: Network, ChainID: ChainID, Gas: Gas, Fee: fees, Mode: Mode, Online: Online, StoreType: types.PrivKey, Level: "debug", })
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRITAClient ¶
type IRITAClient struct { sdk.WSClient sdk.TxManager sdk.TokenConvert //support module bank.Bank service.Service keys.Keys token.Token record.Record nft.NFT // contains filtered or unexported fields }
func NewIRITAClient ¶
func NewIRITAClient(cfg sdk.ClientConfig) IRITAClient
func (*IRITAClient) SetOutput ¶
func (s *IRITAClient) SetOutput(w io.Writer)
Directories ¶
Path | Synopsis |
---|---|
Package adapter is to adapt to the user DAO layer, the user can not override this implementation
|
Package adapter is to adapt to the user DAO layer, the user can not override this implementation |
Package modules is to warpped the API provided by each module of irita
|
Package modules is to warpped the API provided by each module of irita |
bank
Package bank is mainly used to transfer coins between accounts,query account balances, and implement interface rpc.Bank In addition, the available units of tokens in the irita system are defined using [coin-type](https://www.irisnet.org/docs/concepts/coin-type.html).
|
Package bank is mainly used to transfer coins between accounts,query account balances, and implement interface rpc.Bank In addition, the available units of tokens in the irita system are defined using [coin-type](https://www.irisnet.org/docs/concepts/coin-type.html). |
keys
Package keys allows you to manage your local tendermint keystore (wallets) for iris.
|
Package keys allows you to manage your local tendermint keystore (wallets) for iris. |
service
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).
|
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). |
token
Package asset allows individuals and companies to create and issue their own tokens.
|
Package asset allows individuals and companies to create and issue their own tokens. |
uuid
reference: https://github.com/binance-chain/go-sdk/blob/master/common/uuid/codec.go reference: https://github.com/binance-chain/go-sdk/blob/master/common/uuid/generator.go Package uuid reference: https://github.com/binance-chain/go-sdk/blob/master/common/uuid/uuid.go
|
reference: https://github.com/binance-chain/go-sdk/blob/master/common/uuid/codec.go reference: https://github.com/binance-chain/go-sdk/blob/master/common/uuid/generator.go Package uuid reference: https://github.com/binance-chain/go-sdk/blob/master/common/uuid/uuid.go |
Click to show internal directories.
Click to hide internal directories.