Skip to content
/ claws Public

made for communicating with mainstream chain in one interface

Notifications You must be signed in to change notification settings

fadeAce/claws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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))

About

made for communicating with mainstream chain in one interface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages