Documentation ¶
Index ¶
- func CreateAndBroadcastMultiTransaction(node enums.Node, fromAddressBase58 string, toAddressBase58 string, ...) (string, error)
- func GenerateMnemonic(numberOfWords int) string
- type CrawlResult
- type CrawlTransaction
- type Crawler
- type Token
- func (t *Token) GetBalance(node enums.Node, addressBase58 string) (*big.Int, error)
- func (t *Token) GetDecimals(node enums.Node, addressBase58 string) (*big.Int, error)
- func (t *Token) GetName(node enums.Node, addressBase58 string) (string, error)
- func (t *Token) GetSymbol(node enums.Node, addressBase58 string) (string, error)
- type TronWallet
- func (t *TronWallet) Balance() (int64, error)
- func (t *TronWallet) BalanceTRC20(token *Token) (int64, error)
- func (t *TronWallet) EstimateTransferFee(toAddressBase58 string, amountInSun int64) (int64, error)
- func (t *TronWallet) EstimateTransferTRC20Fee() (int64, error)
- func (t *TronWallet) PrivateKeyBytes() ([]byte, error)
- func (t *TronWallet) PrivateKeyRCDSA() (*ecdsa.PrivateKey, error)
- func (t *TronWallet) Transfer(toAddressBase58 string, amountInSun int64) (string, error)
- func (t *TronWallet) TransferTRC20(token *Token, toAddressBase58 string, amountInTRC20 int64, feeLimit int64) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CrawlResult ¶
type CrawlResult struct { Address string Transactions []CrawlTransaction }
type CrawlTransaction ¶
type Crawler ¶
func (*Crawler) ScanBlocks ¶
func (c *Crawler) ScanBlocks(count int) ([]CrawlResult, error)
func (*Crawler) ScanBlocksFromTo ¶
func (c *Crawler) ScanBlocksFromTo(from int, to int) ([]CrawlResult, error)
type Token ¶
type Token struct {
ContractAddress enums.ContractAddress
}
func (*Token) GetBalance ¶
func (*Token) GetDecimals ¶
type TronWallet ¶
type TronWallet struct { Node enums.Node Address string AddressBase58 string PrivateKey string PublicKey string }
func CreateTronWallet ¶
func CreateTronWallet(node enums.Node, privateKeyHex string) (*TronWallet, error)
func GenerateTronWallet ¶
func GenerateTronWallet(node enums.Node) *TronWallet
func MnemonicToTronWallet ¶
func MnemonicToTronWallet(node enums.Node, mnemonic, accountPath, passphrase string) (*TronWallet, error)
func (*TronWallet) Balance ¶
func (t *TronWallet) Balance() (int64, error)
func (*TronWallet) BalanceTRC20 ¶
func (t *TronWallet) BalanceTRC20(token *Token) (int64, error)
func (*TronWallet) EstimateTransferFee ¶
func (t *TronWallet) EstimateTransferFee(toAddressBase58 string, amountInSun int64) (int64, error)
func (*TronWallet) EstimateTransferTRC20Fee ¶
func (t *TronWallet) EstimateTransferTRC20Fee() (int64, error)
func (*TronWallet) PrivateKeyBytes ¶
func (t *TronWallet) PrivateKeyBytes() ([]byte, error)
func (*TronWallet) PrivateKeyRCDSA ¶
func (t *TronWallet) PrivateKeyRCDSA() (*ecdsa.PrivateKey, error)
func (*TronWallet) Transfer ¶
func (t *TronWallet) Transfer(toAddressBase58 string, amountInSun int64) (string, error)
func (*TronWallet) TransferTRC20 ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.