Documentation ¶
Index ¶
- Variables
- func AddressHRToAddress(addressHR string) (string, error)
- func AddressToAddressHR(address string) (string, error)
- func PublicKeyToHex(pk *PublicKey) (ret string)
- func TRXInit()
- type Contract
- type PublicKey
- type RawData
- type TRXHandler
- func (h *TRXHandler) BuildUnsignedTransaction(fromAddress, fromPublicKey, toAddress string, amount *big.Int, ...) (transaction interface{}, digests []string, err error)
- func (h *TRXHandler) GetAddressBalance(address string, jsonstring string) (balance types.Balance, err error)
- func (h *TRXHandler) GetDefaultFee() types.Value
- func (h *TRXHandler) GetTransactionInfo(txhash string) (fromAddress string, txOutputs []types.TxOutput, jsonstring string, ...)
- func (h *TRXHandler) IsToken() bool
- func (h *TRXHandler) MakeSignedTransaction(rsv []string, transaction interface{}) (signedTransaction interface{}, err error)
- func (h *TRXHandler) PublicKeyToAddress(pubKeyHex string) (address string, err error)
- func (h *TRXHandler) SignTransaction(hash []string, privateKey interface{}) (rsv []string, err error)
- func (h *TRXHandler) SubmitTransaction(signedTransaction interface{}) (txhash string, err error)
- type Transaction
- type TransactionInfo
- type Transfer
- type TxReceipt
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //URL = config.TRON_SOLIDITY_NODE_HTTP //URL = config.ApiGateways.TronGateway.ApiAddress URL string ALPHABET = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" //prefix = byte(0xA0) TRANSFER_CONTRACT = "TransferContract" )
View Source
var TRX_DEFAULT_FEE *big.Int
Functions ¶
func AddressHRToAddress ¶
func AddressToAddressHR ¶
func PublicKeyToHex ¶
Types ¶
type PublicKey ¶
func HexToPublicKey ¶
type TRXHandler ¶
type TRXHandler struct{}
func NewTRXHandler ¶
func NewTRXHandler() *TRXHandler
func (*TRXHandler) BuildUnsignedTransaction ¶
func (*TRXHandler) GetAddressBalance ¶
func (*TRXHandler) GetDefaultFee ¶
func (h *TRXHandler) GetDefaultFee() types.Value
func (*TRXHandler) GetTransactionInfo ¶
func (*TRXHandler) IsToken ¶
func (h *TRXHandler) IsToken() bool
func (*TRXHandler) MakeSignedTransaction ¶
func (h *TRXHandler) MakeSignedTransaction(rsv []string, transaction interface{}) (signedTransaction interface{}, err error)
func (*TRXHandler) PublicKeyToAddress ¶
func (h *TRXHandler) PublicKeyToAddress(pubKeyHex string) (address string, err error)
func (*TRXHandler) SignTransaction ¶
func (h *TRXHandler) SignTransaction(hash []string, privateKey interface{}) (rsv []string, err error)
func (*TRXHandler) SubmitTransaction ¶
func (h *TRXHandler) SubmitTransaction(signedTransaction interface{}) (txhash string, err error)
type Transaction ¶
type Transaction struct { Signature string `json:"signature"` TxID string `json:"txID"` Raw_data RawData `json:"raw_data"` Error string `json:"Error,omitempty"` }
func (*Transaction) MarshalJson ¶
func (tx *Transaction) MarshalJson() (ret string, err error)
func (*Transaction) UnmarshalJson ¶
func (tx *Transaction) UnmarshalJson(txjson string) (err error)
type TransactionInfo ¶
Click to show internal directories.
Click to hide internal directories.