Documentation ¶
Index ¶
- type TSwrapper
- func (service *TSwrapper) CreateAddress() (*bytes.Buffer, error)
- func (service *TSwrapper) CreateTransfer(fromAddress string, toAddress string, amount float64, fee float64, ...) (*bytes.Buffer, error)
- func (service *TSwrapper) DeleteAddress(address string) (*bytes.Buffer, error)
- func (service *TSwrapper) GetAddress(address string) (*bytes.Buffer, error)
- func (service *TSwrapper) GetAddressKeys(address string) (*bytes.Buffer, error)
- func (service *TSwrapper) GetAddresses() (*bytes.Buffer, error)
- func (service *TSwrapper) GetFee(amount float64) (*bytes.Buffer, error)
- func (service *TSwrapper) GetIntegratedAddresses(address string) (*bytes.Buffer, error)
- func (service *TSwrapper) GetStatus() (*bytes.Buffer, error)
- func (service *TSwrapper) GetTransfer(transactionHash string) (*bytes.Buffer, error)
- func (service *TSwrapper) GetWallet() (*bytes.Buffer, error)
- func (service *TSwrapper) IntegrateAddress(address string, paymentID string) (*bytes.Buffer, error)
- func (service *TSwrapper) ScanAddress(address string, blockIndex int) (*bytes.Buffer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TSwrapper ¶
TSwrapper structure contains the url, token and timeout info for the TRTL Services
func (*TSwrapper) CreateAddress ¶
CreateAddress method creates a new TRTL address
func (*TSwrapper) CreateTransfer ¶
func (service *TSwrapper) CreateTransfer( fromAddress string, toAddress string, amount float64, fee float64, paymentID string, extra string) (*bytes.Buffer, error)
CreateTransfer method sends a TRTL transaction with an address with the amount specified two decimal points.
func (*TSwrapper) DeleteAddress ¶
DeleteAddress method deletes the specified address
func (*TSwrapper) GetAddress ¶
GetAddress method gets the address details of the specified address
func (*TSwrapper) GetAddressKeys ¶
GetAddressKeys method gets the public and secret spend keys of the specified address
func (*TSwrapper) GetAddresses ¶
GetAddresses method views all addresses associated with the API token
func (*TSwrapper) GetFee ¶
GetFee method calculates the TRTL Services fee for an amount specified in TRTL with two decimal points.
func (*TSwrapper) GetIntegratedAddresses ¶
GetIntegratedAddresses mthod returns all integrated address associated with the given normal address
func (*TSwrapper) GetStatus ¶
GetStatus method gets the current status of the TRTL Services infrastructure
func (*TSwrapper) GetTransfer ¶
GetTransfer method gets transaction details specified by transaction hash.
func (*TSwrapper) IntegrateAddress ¶
IntegrateAddress method creates an integrated address with specified paymentID