tron

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChainName               = "trx"
	TronSymbol              = "trx"
	MaxTimeUntillExpiration = 24*60*60*1000 - 120000 //23hour58min, MaxTimeUntillExpiration is 24 hours in Tron
)
View Source
const (
	ChainIDMain = 0x41
	//ChainIDTest = 0xa0
	ChainIDTest = 0x41
)
View Source
const TrxDecimals = 6

Variables

This section is empty.

Functions

func NewLocalWalletAdaptor

func NewLocalWalletAdaptor(network config.NetWorkType) wallet.WalletAdaptor

func NewWalletAdaptor

func NewWalletAdaptor(conf *config.Config) (wallet.WalletAdaptor, error)

Types

type WalletAdaptor

type WalletAdaptor struct {
	fallback.WalletAdaptor
	// contains filtered or unexported fields
}

func (*WalletAdaptor) ConvertAddress

func (*WalletAdaptor) CreateAccountSignedTx

func (*WalletAdaptor) CreateAccountTx

func (*WalletAdaptor) CreateUtxoSignedTx

func (*WalletAdaptor) CreateUtxoTx

func (*WalletAdaptor) GetAccount

func (*WalletAdaptor) GetAccountTxFromData

func (a *WalletAdaptor) GetAccountTxFromData(req *wallet2.TxFromDataRequest) (*wallet2.AccountTxResponse, error)

func (*WalletAdaptor) GetAccountTxFromSignedData

func (a *WalletAdaptor) GetAccountTxFromSignedData(req *wallet2.TxFromSignedDataRequest) (*wallet2.AccountTxResponse, error)

func (*WalletAdaptor) GetBalance

func (*WalletAdaptor) GetMinRent

func (*WalletAdaptor) GetNonce

func (*WalletAdaptor) GetTxByAddress

func (*WalletAdaptor) GetTxByHash

func (*WalletAdaptor) GetUtxo

func (*WalletAdaptor) GetUtxoInsFromData

func (a *WalletAdaptor) GetUtxoInsFromData(req *wallet2.UtxoInsFromDataRequest) (*wallet2.UtxoInsResponse, error)

func (*WalletAdaptor) GetUtxoTxFromData

func (a *WalletAdaptor) GetUtxoTxFromData(req *wallet2.TxFromDataRequest) (*wallet2.UtxoTxResponse, error)

func (*WalletAdaptor) GetUtxoTxFromSignedData

func (a *WalletAdaptor) GetUtxoTxFromSignedData(req *wallet2.TxFromSignedDataRequest) (*wallet2.UtxoTxResponse, error)

func (WalletAdaptor) SendTx

func (*WalletAdaptor) ValidAddress

func (*WalletAdaptor) VerifyAccountSignedTx

func (*WalletAdaptor) VerifyUtxoSignedTx

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL