package
Version:
v0.2.0-alpha.0
Opens a new window with list of versions in this module.
Published: Feb 23, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Block struct {
Hash string `json:"hash"`
Raw string `json:"raw"`
Timestamp Date `json:"timestamp"`
Height *int `json:"height"`
Size int64 `json:"size"`
TxCount int `json:"tx_count"`
}
func UnmarshalDate(v interface{}) (Date, error)
type DoubleSpend struct {
Hash string `json:"hash"`
Index uint32 `json:"index"`
Timestamp Date `json:"timestamp"`
}
type Follow struct {
TxHash string `json:"tx_hash"`
Address string `json:"address"`
FollowAddress string `json:"follow_address"`
Unfollow bool `json:"unfollow"`
}
type Like struct {
TxHash string `json:"tx_hash"`
Address string `json:"address"`
PostTxHash string `json:"post_tx_hash"`
Tip int64 `json:"tip"`
}
type Lock struct {
Address string `json:"address"`
Balance int64 `json:"balance"`
}
type Post struct {
TxHash string `json:"tx_hash"`
Address string `json:"address"`
Text string `json:"text"`
}
type Profile struct {
Address string `json:"address"`
Name *SetName `json:"name"`
Profile *SetProfile `json:"profile"`
Pic *SetPic `json:"pic"`
}
type Room struct {
Name string `json:"name"`
}
type RoomFollow struct {
Name string `json:"name"`
Address string `json:"address"`
Unfollow bool `json:"unfollow"`
TxHash string `json:"tx_hash"`
}
type SetName struct {
TxHash string `json:"tx_hash"`
Address string `json:"address"`
Name string `json:"name"`
}
type SetPic struct {
TxHash string `json:"tx_hash"`
Address string `json:"address"`
Pic string `json:"pic"`
}
type SetProfile struct {
TxHash string `json:"tx_hash"`
Address string `json:"address"`
Text string `json:"text"`
}
type Tx struct {
Hash string `json:"hash"`
Index uint32 `json:"index"`
Raw string `json:"raw"`
Seen Date `json:"seen"`
}
type TxInput struct {
Hash string `json:"hash"`
Index uint32 `json:"index"`
PrevHash string `json:"prev_hash"`
PrevIndex uint32 `json:"prev_index"`
Script string `json:"script"`
}
type TxLost struct {
Hash string `json:"hash"`
}
type TxOutput struct {
Hash string `json:"hash"`
Index uint32 `json:"index"`
Amount int64 `json:"amount"`
Script string `json:"script"`
}
type TxSuspect struct {
Hash string `json:"hash"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.