Documentation ¶
Index ¶
Constants ¶
View Source
const URI = "https://api.trongrid.io/"
Variables ¶
View Source
var ErrEmpty = errors.New("")
Functions ¶
func NewDecoder ¶
func NewEncoder ¶
Types ¶
type API ¶
type API interface { // ListTransactions // Docs: https://developers.tron.network/reference/get-trc20-transaction-info-by-account-address ListTransactions( ctx context.Context, req *ListTransactionsRequest, ) (resp *ListTransactionsResponse, err error) }
type ListTransactionsRequest ¶
type ListTransactionsRequest struct { MaxTimestamp time.Time `url:"max_timestamp,omitempty"` MinTimestamp time.Time `url:"min_timestamp,omitempty"` Address string `url:"Address,omitempty"` Fingerprint string `url:"fingerprint,omitempty"` OrderBy string `url:"order_by,omitempty"` Limit int32 `url:"limit,omitempty"` OnlyConfirmed bool `url:"only_confirmed,omitempty"` OnlyFrom bool `url:"only_from,omitempty"` OnlyTo bool `url:"only_to,omitempty"` }
type ListTransactionsResponse ¶
type ListTransactionsResponse struct { Meta *Meta `json:"meta"` Data []*Transaction `json:"data"` Success bool `json:"success"` }
type Transaction ¶
type TransactionType ¶
type TransactionType string
const TransactionTypeTransfer TransactionType = "Transfer"
Click to show internal directories.
Click to hide internal directories.