taraxa_client

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network uint64
const (
	Undefined Network = iota
	Mainnet
	Testnet
	Devnet
)

type TaraxaClient

type TaraxaClient struct {
	DposContractClient *dpos_contract_client.DposContractClient
	EthRpcClient       *ethclient.Client
	// contains filtered or unexported fields
}

TaraxaClient contains variables and methods needed for communication with taraxa dpos smart contract and RPC

func NewDefaultTaraxaClient

func NewDefaultTaraxaClient(network Network) (*TaraxaClient, error)

Creates new taraxa client based on default values set for different taraxa networks

func NewTaraxaClient

func NewTaraxaClient(chainID *big.Int, url string, dposContractAddress common.Address) (*TaraxaClient, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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