Help us shape the future of Go! Take the 2026 Go Developer Survey

multichain

package module
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2022 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const (
	TypeEthereum = 1 // ethereum
	TypeBinance  = 2 // binance
	TypeOKEx     = 3 // okex
)

Variables

This section is empty.

Functions

func NewAddressManager

func NewAddressManager(chainType uint) (address.Encoder, error)

NewAddressManager 新建一个账户地址格式转换器

func NewClient

func NewClient(chainType uint, provider provider.CommonProvider) (client.Client, error)

NewClient 新建一个多链客户端

func NewContractTxBuilder

func NewContractTxBuilder(chainType uint, provider provider.CommonProvider) (txbuilder.ContractTxBuilder, error)

NewContractTxBuilder 新建一个合约相关类型的交易构造器

func NewTxBuilder

func NewTxBuilder(chainType uint, provider provider.CommonProvider) (txbuilder.TxBuilder, error)

NewTxBuilder 新建一个交易构造器

Types

This section is empty.

Directories

Path Synopsis
api
fee
tx
chain

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL