Documentation
¶
Index ¶
- func GetMemo(s []byte) string
- func GetTxHash(tx *api.TransactionExtention) ([]byte, error)
- type ChainTron
- func (c *ChainTron) AddSign(tx *core.Transaction, private string) (*api.TransactionExtention, error)
- func (c *ChainTron) CreateTransaction(fromHex, toHex, memo string, amount int64) (*api.TransactionExtention, error)
- func (c *ChainTron) GetBalance(addr string) (int64, error)
- func (c *ChainTron) GetBlockByNumber(blockNumber uint64) (*api.BlockExtention, error)
- func (c *ChainTron) GetBlockNumber() (int64, error)
- func (c *ChainTron) LocalSign(tx *api.TransactionExtention, privateKey string) error
- func (c *ChainTron) SendTransaction(in *core.Transaction) error
- func (c *ChainTron) TransferTrc20(contractHex, fromHex, toHex string, amount int64, feeLimit int64) (*api.TransactionExtention, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChainTron ¶
type ChainTron struct { Ctx context.Context Client api.WalletClient }
func (*ChainTron) AddSign ¶
func (c *ChainTron) AddSign(tx *core.Transaction, private string) (*api.TransactionExtention, error)
AddSign Deprecated
func (*ChainTron) CreateTransaction ¶
func (*ChainTron) GetBalance ¶ added in v1.2.0
func (*ChainTron) GetBlockByNumber ¶
func (c *ChainTron) GetBlockByNumber(blockNumber uint64) (*api.BlockExtention, error)
func (*ChainTron) GetBlockNumber ¶
func (*ChainTron) LocalSign ¶
func (c *ChainTron) LocalSign(tx *api.TransactionExtention, privateKey string) error
func (*ChainTron) SendTransaction ¶
func (c *ChainTron) SendTransaction(in *core.Transaction) error
func (*ChainTron) TransferTrc20 ¶
Click to show internal directories.
Click to hide internal directories.