Versions in this module Expand all Collapse all v0 v0.1.1 Sep 19, 2023 v0.1.0 Sep 18, 2023 Changes in this version + func NewServer(g Syncer, chain ChainManager, tp TPool, bench Benchmark, wallet Wallet, ...) http.Handler + type Benchmark interface + BenchmarkHost func(ctx context.Context, hostAddr string, hostKey types.PublicKey, sectors uint64) (benchmark.Result, error) + ScanHost func(ctx context.Context, hostAddr string, hostKey types.PublicKey) (benchmark.Settings, error) + type BenchmarkRequest struct + Address string + HostKey types.PublicKey + Sectors uint64 + type ChainManager interface + Synced func() bool + TipState func() consensus.State + type ConsensusState struct + ChainIndex types.ChainIndex + Synced bool + type Peer struct + Address string + Version string + type ScanRequest struct + Address string + HostKey types.PublicKey + type Syncer interface + Address func() modules.NetAddress + Connect func(addr modules.NetAddress) error + Disconnect func(addr modules.NetAddress) error + Peers func() []modules.Peer + type SyncerConnectRequest struct + Address string + type TPool interface + AcceptTransactionSet func(txns []types.Transaction) error + RecommendedFee func() (fee types.Currency) + type Wallet interface + Address func() types.Address + Balance func() (spendable, confirmed, unconfirmed types.Currency, err error) + FundTransaction func(txn *types.Transaction, amount types.Currency) (toSign []types.Hash256, release func(), err error) + ScanHeight func() uint64 + SignTransaction func(cs consensus.State, txn *types.Transaction, toSign []types.Hash256, ...) error + Transactions func(limit, offset int) ([]wallet.Transaction, error) + UnconfirmedTransactions func() ([]wallet.Transaction, error) + type WalletResponse struct + Address types.Address + Confirmed types.Currency + ScanHeight uint64 + Spendable types.Currency + Unconfirmed types.Currency + type WalletSendSiacoinsRequest struct + Address types.Address + Amount types.Currency + SubtractMinerFee bool