Categorygithub.com/fadeace/claws
modulepackage
0.0.0-20190710111926-c07d60d504f6
Repository: https://github.com/fadeace/claws.git
Documentation: pkg.go.dev

# README

claws

made for communicating with mainstream chain in one interface


core conception

support a chain needs coding
support a type of chain based crypto needs coding
support a chain based crypto needs not more than configuration

core usage

// step.1 load config file
conf := &types.Claws{}
cfg, _ := ioutil.ReadFile("./claws.yml")
_ = yaml.Unmarshal(cfg, conf)

// step.2 setup builder with config file
SetupGate(conf, nil)

// step.3 just use wallet from buildered one
wallet := claws.Builder.BuildWallet("eth")

// step.4 do sth with wallet , like fetching txs from a block
txns, err := wallet.UnfoldTxs(conf.Ctx, big.NewInt(4356126))

# Packages

No description provided by the author
No description provided by the author

# Functions

this is based on cfg itself, it would load all config to make intersection with code pre-define.

# Variables

this gate is for matching cgate at claws it's eternal and not to be modified.

# Interfaces

wallet is general structure keep up with the chain in using line handler.
No description provided by the author