Versions in this module Expand all Collapse all v1 v1.0.2 Oct 14, 2024 Changes in this version + const BalanceFuncSelector + var Contracts = map[string]ContractInfo + func FromMnemonicSeedAndPassphrase(mnemonic, passphrase string, index int) (*btcec.PrivateKey, *btcec.PublicKey) + type ContractInfo struct + Address string + Fee decimal.Decimal + type RawData struct + Contract []struct{ ... } + Expiration int64 + FeeLimit int64 + RefBlockBytes string + RefBlockHash string + Timestamp int64 + type RawTransaction struct + RawData RawData + RawDataHex string + TxID string + Visible bool + type SignedTransaction struct + RawData string + RawDataHex string + Signature []string + TxID string + Visible bool + type Trc20 struct + Denomination decimal.Decimal + FullNodeUrl string + RestFullNodeUrl string + RestSolidityNodeURL string + SolidityNodeURL string + TRC20Denomination decimal.Decimal + TronGridApiKey string + TronGridNodeurl string + func New(fullNodeUrl, solidityNodeURL, restFullNodeUrl, restSolidityNodeURL, ... string, ...) *Trc20 + func (client *Trc20) Base58ToHex(address string) string + func (client *Trc20) GenerateWallet() (provider.Wallet, error) + func (client *Trc20) GetTRC20Balance(address string, name string) (decimal.Decimal, error) + func (client *Trc20) GetTRC20BalanceWithTronGrid(address string, name string) (decimal.Decimal, error) + func (client *Trc20) GetTRXBalance(address string) (decimal.Decimal, error) + func (client *Trc20) GetTRXBalanceWithTronGrid(address string) (decimal.Decimal, error) + func (client *Trc20) SendTRC20(wallet provider.Wallet, toAddress string, amount decimal.Decimal, name string) (string, error) + func (client *Trc20) SendTRX(wallet provider.Wallet, to string, amount decimal.Decimal) (string, error)