Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Header ¶
type Header struct {
Height int `json:"height"`
}
Header is used by HeadersSubscribe().
type TxHistory ¶
type TxHistory []*TxInfo
TxHistory is returned by ScriptHashGetHistory.
func (TxHistory) Status ¶
Status encodes the status of the address history as a hex-encoded hash, according to the Electrum specification. https://github.com/spesmilo/electrumx/blob/75d0e25bf022355941ae4ecb4d5eba41babcf041/docs/protocol-basics.rst#status
type TxInfo ¶
type TxInfo struct {
// >0 for a confirmed transaction. 0 for an unconfirmed transaction. -1 for an unconfirmed
// transaction with an unconfirmed parent transaction.
Height int `json:"height"`
TxHash string `json:"tx_hash"`
}
TxInfo is returned by ScriptHashGetHistory.
type VaultTransaction ¶
type VaultTransaction struct {
Height int `json:"confirmed_height"`
TxHash string `json:"txid"`
TxPosition int `json:"tx_position"`
Amount uint64 `json:"amount"`
StakerAddress string `json:"staker_address"`
StakerPubkey string `json:"staker_pubkey"`
DestChain uint64 `json:"destination_chain"`
DestContractAddress string `json:"destination_contract_address"`
DestRecipientAddress string `json:"destination_recipient_address"`
Timestamp int64 `json:"timestamp"`
Key string `json:"key"`
TxContent string `json:"tx_content"`
}
func (*VaultTransaction) Marshal ¶
func (tx *VaultTransaction) Marshal() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.