Documentation ¶
Index ¶
- func LocalGenerateAddress(viewKey, spendKey string) (*common.Address, error)
- func LocalSignRawTransaction(assetId string)
- func ParseKeyFromHex(src string) (crypto.Key, error)
- type Mint
- type MixinKey
- type MixinNetwork
- func (m *MixinNetwork) GetInfo() (*NodeInfo, error)
- func (m *MixinNetwork) GetTransaction(hash string) (*Transaction, error)
- func (m *MixinNetwork) GetTransactionUTXO(hash string, viewKey string) ([]*UTXO, error)
- func (m *MixinNetwork) ListAllNodes() ([]*Node, error)
- func (m *MixinNetwork) ListMintDistributions() ([]*Mint, error)
- func (m *MixinNetwork) ListSnapshotsSince(since, count uint64) ([]*SnapshotWithTransaction, error)
- func (m *MixinNetwork) SendRawTransaction(raw string) (string, error)
- type Node
- type NodeInfo
- type SnapshotWithTransaction
- type Transaction
- type UTXO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LocalGenerateAddress ¶
func LocalSignRawTransaction ¶
func LocalSignRawTransaction(assetId string)
Types ¶
type MixinKey ¶
func LocalGenerateKey ¶
type MixinNetwork ¶
type MixinNetwork struct {
// contains filtered or unexported fields
}
func NewMixinNetwork ¶
func NewMixinNetwork(node string) *MixinNetwork
func (*MixinNetwork) GetInfo ¶
func (m *MixinNetwork) GetInfo() (*NodeInfo, error)
func (*MixinNetwork) GetTransaction ¶
func (m *MixinNetwork) GetTransaction(hash string) (*Transaction, error)
func (*MixinNetwork) GetTransactionUTXO ¶
func (m *MixinNetwork) GetTransactionUTXO(hash string, viewKey string) ([]*UTXO, error)
func (*MixinNetwork) ListAllNodes ¶
func (m *MixinNetwork) ListAllNodes() ([]*Node, error)
func (*MixinNetwork) ListMintDistributions ¶
func (m *MixinNetwork) ListMintDistributions() ([]*Mint, error)
func (*MixinNetwork) ListSnapshotsSince ¶
func (m *MixinNetwork) ListSnapshotsSince(since, count uint64) ([]*SnapshotWithTransaction, error)
func (*MixinNetwork) SendRawTransaction ¶
func (m *MixinNetwork) SendRawTransaction(raw string) (string, error)
type NodeInfo ¶
type NodeInfo struct { Network string `json:"network"` Node string `json:"node"` Version string `json:"version"` Uptime string `json:"uptime"` Queue struct { Caches int64 `json:"caches"` Finals int64 `json:"finals"` Transactions int64 `json:"transactions"` } `json:"queue"` Graph struct { Topology int64 `json:"topology"` Consensus []struct { Node string `json:"node"` Payee string `json:"payee"` Signer string `json:"signer"` State string `json:"state"` Timestamp int64 `json:"timestamp"` Works []int64 `json:"works"` } `json:"consensus"` } `json:"graph"` Mint struct { Batch int64 `json:"batch"` Pledge string `json:"pledge"` Pool string `json:"pool"` } `json:"mint"` }
type SnapshotWithTransaction ¶
type SnapshotWithTransaction struct { Hash string `json:"hash"` Timestamp uint64 `json:"timestamp"` Topology uint64 `json:"topology"` Transaction Transaction `json:"transaction"` }
type Transaction ¶
type Transaction struct { Version uint8 `json:"version"` Asset string `json:"asset"` Inputs []struct { Hash string `json:"hash"` Index int `json:"index"` Genesis string `json:"genesis"` Deposit *common.DepositData `json:"deposit"` Mint *common.MintData `json:"mint"` } `json:"inputs"` Outputs []struct { Type uint8 `json:"type"` Amount number.Decimal `json:"amount"` Keys []crypto.Key `json:"keys"` Script string `json:"script"` Mask crypto.Key `json:"mask"` } `json:"outputs"` Extra string `json:"extra"` Hash string `json:"hash"` }
func (*Transaction) Deposit ¶
func (tx *Transaction) Deposit() *common.DepositData
Click to show internal directories.
Click to hide internal directories.