bsc

package
v0.0.0-...-d2c779c Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const MainnetChainID = 56

https://github.com/pancakeswap/pancake-frontend/blob/3a10e0bb5352fc01c876efa17dfa844249a17e06/src/utils/addressHelpers.ts#L5

Variables

This section is empty.

Functions

func GetURL

func GetURL() string

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a wrapper of go-ethereum/ethclient to use as bsc client

func NewClient

func NewClient(ctx context.Context, url string, walletKey *ecdsa.PrivateKey) (*Client, error)

func (*Client) BaseTransactOpts

func (c *Client) BaseTransactOpts(ctx context.Context) (*bind.TransactOpts, error)

func (*Client) RawClient

func (c *Client) RawClient() *ethclient.Client

func (*Client) WalletAddress

func (c *Client) WalletAddress() common.Address

Jump to

Keyboard shortcuts

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