Skip to main content

Module params

Module params 

Source
Expand description

Typed request params for the control methods, each bound to its method + result via crate::traits::ControlCall.

One params type per method (even where two methods share the same field shape, e.g. the four { store } methods) so the compile-time method↔params↔result binding is exact: a caller passes PinParams { store } and the type system yields a PinResult. Field names are the exact wire names dig-node reads.

Structs§

ApproveParams
control.pairing.approve params.
AssetId
A CAT asset id — the TAIL hash that names one token on the Chia chain.
CacheClearParams
control.cache.clear params (none).
CacheGetParams
control.cache.get params (none).
ConfigGetParams
control.config.get params (none).
HostedStoreStatusParams
control.hostedStores.status params.
HostedStoresListParams
control.hostedStores.list params (none).
ListSubscriptionsParams
control.listSubscriptions params (none).
PairingListParams
control.pairing.list params (none). Result is the pending + issued-token list.
PauseParams
control.updater.pause params.
PeerCountsParams
control.peerCounts params — none.
PeerStatusParams
control.peerStatus params (none). Result is the peer-pool snapshot.
PeersConnectParams
control.peers.connect params.
PeersDisconnectParams
control.peers.disconnect params.
PinParams
control.hostedStores.pin params.
PollParams
pairing.poll params (OPEN — no token).
ProfileGetBodyParams
control.profile.getBody params: WHICH profile body to read, named by store id + root.
ProfilePutBodyParams
control.profile.putBody params: the profile body a confirmed chain root commits to.
RequestParams
pairing.request params (OPEN — no token).
RevokeParams
control.pairing.revoke params.
SetCapParams
control.cache.setCap params.
SetChannelParams
control.updater.setChannel params.
SetLevelParams
control.log.setLevel params.
SetUpstreamParams
control.config.setUpstream params.
StatusParams
control.status params (none).
SubscribeParams
control.subscribe params.
SyncStatusParams
control.sync.status params (none).
SyncTriggerParams
control.sync.trigger params.
UnpinParams
control.hostedStores.unpin params.
UnsubscribeParams
control.unsubscribe params.
UpdaterCheckNowParams
control.updater.checkNow params (none).
UpdaterResumeParams
control.updater.resume params (none).
UpdaterStatusParams
control.updater.status params (none). Result is the proxied beacon status.
WalletArrivalsParams
control.wallet.arrivals — confirmed INCOMING funds recorded since a cursor position.
WalletBalanceParams
control.wallet.balance params: which address + asset to read the balance of.
WalletBroadcastParams
control.wallet.broadcast params: an ALREADY-SIGNED spend bundle to push.
WalletCoinByIdParams
control.wallet.coinById params: WHICH coin, named by its own id.
WalletCoinSpendParams
control.wallet.coinSpend params: WHICH coin’s spend to read, named by that coin’s own id.
WalletCoinsByParentParams
control.wallet.coinsByParent params: WHICH coin’s direct children to read.
WalletCoinsParams
control.wallet.coins params: which address + asset to read spendable coins for.
WalletPeakParams
control.wallet.peak params — none.
WalletSyncStatusParams
control.wallet.syncStatus params — none.
WalletUnwatchParams
control.wallet.unwatch params: which PUBLIC keys the node should stop following.
WalletWatchParams
control.wallet.watch params: which PUBLIC keys the node should follow.
WalletWatchedParams
control.wallet.watched params — none.

Enums§

Asset
The asset a wallet balance/coin read is denominated in: native XCH, or any CAT by asset id.
AssetIdParseError
Why an asset id could not be parsed. Deliberately small — an id is either 32 bytes of hex or it is not an id, and guessing at a near-miss is how a wallet ends up reading the wrong token.
SubscriptionKind
WHAT a subscription follows: ordinary content, or a dig-profile.

Constants§

ASSET_ID_HEX_LEN
The length of a CAT asset id (TAIL hash) in hex characters: a 32-byte hash.
COINS_BY_PARENT_DEFAULT_LIMIT
The page size control.wallet.coinsByParent uses when the caller names none.
COINS_BY_PARENT_MAX_LIMIT
The largest page control.wallet.coinsByParent will accept, derived from the transport’s own frame limit rather than chosen for feel.
MAX_BODY_BYTES
The largest dig-profile body the control plane accepts or returns, in bytes: 4 MiB.