Documentation
¶
Index ¶
- Constants
- func ERC20ABI() abi.ABI
- func NewClient(chain common.Chain, host string, keys *thorclient.Keys) (LiteChainClient, error)
- func NewConstructor(host string) LiteChainClientConstructor
- func RouterABI() abi.ABI
- func Tokens(chain common.Chain) map[common.Asset]tokenlist.ERC20Token
- type Client
- func (c *Client) BroadcastTx(signed []byte) (string, error)
- func (c *Client) GetAccount(pk *common.PubKey) (*common.Account, error)
- func (c *Client) GetTokenDecimals(address string) (int, error)
- func (c *Client) SignContractTx(tx SimContractTx) ([]byte, error)
- func (c *Client) SignTx(tx SimTx) ([]byte, error)
Constants ¶
View Source
const ContractGasLimit = 3000000
Variables ¶
This section is empty.
Functions ¶
func NewConstructor ¶
func NewConstructor(host string) LiteChainClientConstructor
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) SignContractTx ¶
Click to show internal directories.
Click to hide internal directories.