Documentation ¶
Index ¶
- Constants
- func Normalize(payment *Payment, nativeCoinIndex uint) (tx types.Tx, ok bool)
- type Block
- type Client
- type Ledger
- type LedgersPage
- type Payment
- type PaymentsPage
- type Platform
- func (p *Platform) Coin() coin.Coin
- func (p *Platform) CurrentBlockNumber() (int64, error)
- func (p *Platform) GetBlockByNumber(num int64) (*types.Block, error)
- func (p *Platform) GetTxsByAddress(address string) (types.Txs, error)
- func (p *Platform) NormalizeBlock(block *Block) types.Block
- func (p *Platform) NormalizePayments(payments []Payment) types.Txs
- type Transaction
Constants ¶
View Source
const ( PaymentType = "payment" CreateAccount = "create_account" )
Payment types https://www.stellar.org/developers/horizon/reference/endpoints/payments-for-account.html
View Source
const FixedFee = "100" // Fixed at 100 stroops https://stellar.org/developers/guides/concepts/fees.html
View Source
const (
Native = "native"
)
Assets types
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
func (*Client) CurrentBlockNumber ¶
type LedgersPage ¶
type LedgersPage struct { Embedded struct { Records []Ledger } `json:"_embedded"` }
type Payment ¶
type Payment struct { ID string `json:"id"` Type string `json:"type"` SourceAccount string `json:"source_account"` CreatedAt string `json:"created_at"` Account string `json:"account"` Funder string `json:"funder"` StartingBalance string `json:"starting_balance"` Into string `json:"into"` From string `json:"from"` To string `json:"to"` AssetType string `json:"asset_type"` Amount string `json:"amount"` TransactionHash string `json:"transaction_hash"` Transaction Transaction `json:"transaction"` }
Payment model returned by Horizon
type PaymentsPage ¶
type PaymentsPage struct { Embedded struct { Records []Payment } `json:"_embedded"` }
PaymentsPage of payments returned by Horizon
type Platform ¶
type Platform struct { CoinIndex uint // contains filtered or unexported fields }
func (*Platform) CurrentBlockNumber ¶
func (*Platform) GetBlockByNumber ¶
func (*Platform) GetTxsByAddress ¶
type Transaction ¶
Click to show internal directories.
Click to hide internal directories.