Documentation ¶
Index ¶
- type Client
- func (c *Client) BroadcastTransaction(transaction *core.Transaction) error
- func (c *Client) GetTrc10Balance(addr, assetId string) (int64, error)
- func (c *Client) GetTrc20Balance(addr, contractAddress string) (*big.Int, error)
- func (c *Client) GetTrxBalance(addr string) (*core.Account, error)
- func (c *Client) SetTimeout(timeout time.Duration) error
- func (c *Client) Transfer(from, to string, amount int64) (*api.TransactionExtention, error)
- func (c *Client) TransferTrc10(from, to, assetId string, amount int64) (*api.TransactionExtention, error)
- func (c *Client) TransferTrc20(from, to, contract string, amount *big.Int, feeLimit int64) (*api.TransactionExtention, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { GRPC *client.GrpcClient // contains filtered or unexported fields }
func (*Client) BroadcastTransaction ¶
func (c *Client) BroadcastTransaction(transaction *core.Transaction) error
func (*Client) GetTrc10Balance ¶
func (*Client) GetTrc20Balance ¶
func (*Client) TransferTrc10 ¶
func (*Client) TransferTrc20 ¶
Click to show internal directories.
Click to hide internal directories.