methods

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountInfoRequest

type AccountInfoRequest struct {
	models.BaseRequest
	Account     string `json:"account,omitempty"`
	LedgerHash  string `json:"ledger_hash,omitempty"`
	LedgerIndex string `json:"ledger_index,omitempty"`
	Queue       bool   `json:"queue,omitempty"`
	SignerLists bool   `json:"signer_lists,omitempty"`
	Strict      bool   `json:"strict,omitempty"`
}

type AccountInfoResponse

type AccountInfoResponse struct {
	models.BaseResponse
	Result AccountInfoResult `json:"result,omitempty"`
}

type AccountInfoResult

type AccountInfoResult struct {
	AccountData        string    `json:"account_data,omitempty"` //todo
	SignerLists        string    `json:"signer_lists,omitempty"` //todo
	LedgerCurrentIndex int       `json:"ledger_current_index,omitempty"`
	LedgerIndex        int       `json:"ledger_index,omitempty"`
	QueueData          QueueData `json:"queue_data,omitempty"`
	Validated          bool      `json:"validated,omitempty"`
}

type QueueData

type QueueData struct {
	TxnCount           int                `json:"txn_count,omitempty"`
	AuthChangeQueued   bool               `json:"auth_change_queued,omitempty"`
	LowestSequence     int                `json:"lowest_sequence,omitempty"`
	HighestSequence    int                `json:"highest_sequence,omitempty"`
	MaxSpendDropsTotal string             `json:"max_spend_drops_total,omitempty"`
	Transactions       []QueueTransaction `json:"transactions,omitempty"`
}

type QueueTransaction

type QueueTransaction struct {
	AuthChange    bool   `json:"auth_change,omitempty"`
	Fee           string `json:"fee,omitempty"`
	FeeLevel      string `json:"fee_level,omitempty"`
	MaxSpendDrops string `json:"max_spend_drops,omitempty"`
	Seq           int    `json:"seq,omitempty"`
}

type TxRequest

type TxRequest struct {
	models.BaseRequest
	Transaction string `json:"transaction,omitempty"`
	Binary      bool   `json:"binary,omitempty"`
	MinLedger   int64  `json:"min_ledger,omitempty"`
	MaxLedger   int64  `json:"max_ledger,omitempty"`
}

The tx method retrieves information on a single transaction, by its identifying hash. Expects a response in the form of a TxResponse.

type TxResponse

type TxResponse struct {
	models.BaseResponse
	Result      TxResponseResult `json:"result,omitempty"`
	SearchedAll bool             `json:"searched_all,omitempty"`
}

Response expected from a TxRequest.

type TxResponseResult

type TxResponseResult struct {
	models.Transaction
	Hash        string                     `json:"hash,omitempty"`
	LedgerIndex int64                      `json:"ledger_index,omitempty"`
	Meta        models.TransactionMetadata `json:"meta,omitempty"`
	Validated   bool                       `json:"validated,omitempty"`
	Date        int64                      `json:"date,omitempty"`
}

Jump to

Keyboard shortcuts

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