package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: May 23, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
View Source
const DefaultUrl = "http://localhost:26770/graphql"
type Address struct {
Address string `json:"address"`
Txs []Tx `json:"txs"`
}
type Block struct {
Hash string `json:"hash"`
Height int64 `json:"height"`
Timestamp time.Time `json:"timestamp"`
}
type Input struct {
Tx Tx `json:"tx"`
Hash string `json:"hash"`
Index int `json:"index"`
PrevHash string `json:"prev_hash"`
PrevIndex int `json:"prev_index"`
Output Output `json:"output"`
}
type Lock struct {
Address string `json:"address"`
}
type Output struct {
Tx Tx `json:"tx"`
Hash string `json:"hash"`
Script string `json:"script"`
Index int `json:"index"`
Amount int64 `json:"amount"`
Spends []Input `json:"spends"`
Lock Lock `json:"lock"`
Slp *Slp `json:"slp"`
SlpBaton *SlpBaton `json:"slp_baton"`
}
type Post struct {
TxHash string `json:"tx_hash"`
Address string `json:"address"`
Text string `json:"text"`
Tx *Tx `json:"tx"`
}
type Slp struct {
Hash string `json:"hash"`
Index uint32 `json:"index"`
TokenHash string `json:"token_hash"`
Amount uint64 `json:"amount"`
Genesis *SlpGenesis `json:"genesis"`
}
type SlpBaton struct {
Hash string `json:"hash"`
Index uint32 `json:"index"`
TokenHash string `json:"token_hash"`
Genesis *SlpGenesis `json:"genesis"`
}
type SlpGenesis struct {
Hash string `json:"hash"`
TokenType uint8 `json:"token_type"`
Decimals uint8 `json:"decimals"`
Ticker string `json:"ticker"`
Name string `json:"name"`
DocUrl string `json:"doc_url"`
}
type Tx struct {
Hash string `json:"hash"`
Raw string `json:"raw"`
Seen time.Time `json:"seen"`
Inputs []Input `json:"inputs"`
Outputs []Output `json:"outputs"`
Blocks []TxBlock `json:"blocks"`
}
type TxBlock struct {
TxHash string `json:"tx_hash"`
BlockHash string `json:"block_hash"`
Tx Tx `json:"tx"`
Block Block `json:"block"`
Index int `json:"index"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.