Documentation
¶
Overview ¶
Package Tron Module
Index ¶
- func GetAddressFromPrivateKey(privateKey []byte) string
- type Client
- func (Self *Client) GetBalance(address string, token string) (float64, error)
- func (Self *Client) GetCurrentHeight() (uint64, error)
- func (Self *Client) GetTransaction(txHash string) (*types.Transaction, error)
- func (Self *Client) Transfer(privateKey []byte, to string, token string, value float64) (string, error)
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAddressFromPrivateKey ¶
Function GetAddressFromPrivateKey 从私钥获取地址
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetBalance ¶
Function GetBalance 查询余额
func (*Client) GetCurrentHeight ¶
Function GetCurrentHeight 获取当前高度
func (*Client) GetTransaction ¶
func (Self *Client) GetTransaction(txHash string) (*types.Transaction, error)
Function GetTransaction 查询交易
Click to show internal directories.
Click to hide internal directories.