Skip to main content

Module sdk

Module sdk 

Source
Expand description

Sdk entrypoint to Dash Platform.

Structs§

Address
DAPI address.
AddressBanInfo
An owned, cloned snapshot of a single address’ ban state, returned from crate::AddressList::ban_info.
AddressList
A structure to manage DAPI addresses to select from for DapiRequest execution.
RequestSettings
DAPI request settings.
Sdk
Dash Platform SDK
SdkBuilder
Dash Platform SDK Builder, used to configure and SdkBuilder::build() the Sdk.
Uri
The URI component of a request.

Constants§

DEFAULT_CONTRACT_CACHE_SIZE
How many data contracts fit in the cache.
DEFAULT_QUORUM_PUBLIC_KEYS_CACHE_SIZE
How many quorum public keys fit in the cache.
DEFAULT_TOKEN_CONFIG_CACHE_SIZE
How many token configs fit in the cache.

Functions§

min_protocol_version
Per-network default seed used only when an unpinned SDK has no explicit initial version.
prettify_proof

Type Aliases§

ProtocolVersionObserver
Called with the new protocol version each time auto-detect ratchets it upward. See SdkBuilder::with_protocol_version_observer.