Documentation
¶
Index ¶
Constants ¶
View Source
const (
MaximumBitmarksCount = 100
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitmarksArguments ¶
type BitmarksArguments struct {
Owner *account.Account `json:"owner"` // base58
Start uint64 `json:"Start,string"` // first record number
Count int `json:"count"` // number of records
}
BitmarksArguments - arguments for RPC
type BitmarksRecord ¶
type BitmarksRecord struct {
Record string `json:"record"`
TxId interface{} `json:"txId,omitempty"`
InBlock uint64 `json:"inBlock"`
AssetId interface{} `json:"assetId,omitempty"`
Data interface{} `json:"data"`
}
BitmarksRecord - can be any of the transaction records
type BitmarksReply ¶
type BitmarksReply struct {
Next uint64 `json:"next,string"` // Start value for the next call
Data []ownership.Record `json:"data"` // list of bitmarks either issue or transfer
Tx map[string]BitmarksRecord `json:"tx"` // table of tx records
}
BitmarksReply - result of owner RPC
type BlockAsset ¶
type BlockAsset struct {
Number uint64 `json:"number"`
}
BlockAsset - special record for owned blocks
type Owner ¶
type Owner struct {
Log *logger.L
Limiter *rate.Limiter
PoolTransactions storage.Handle
PoolAssets storage.Handle
Ownership ownership.Ownership
}
Owner - type for the RPC
func (*Owner) Bitmarks ¶
func (owner *Owner) Bitmarks(arguments *BitmarksArguments, reply *BitmarksReply) error
Bitmarks - list bitmarks belonging to an account
Click to show internal directories.
Click to hide internal directories.