Skip to content
API reference

API reference

Every function and type the SDK exports, each documented once, generated from its TSDoc.

This section documents everything @umbra/nimbus-solana-web exports. Each function has one entry, with its signature, an example, its parameters and what it returns. Each entry is generated from the SDK's declarations and TSDoc when this site is built, so it matches the package.

The guides show how the functions fit together. This section is where you look one up. Every mention of an export elsewhere on the site links to its entry here.

Functions

ExportWhat it does
loadNimbusSdkLoads the SDK for a cluster. Every other call starts from what it returns.
listWalletsLists the installed wallets that can sign on the cluster.
followWalletsCalls you with the new list each time a wallet registers or unregisters.
openWalletConnectionConnects a wallet and returns the signer a session takes.
openNimbusSessionOpens the user's private account on this device.
closeNimbusSessionClears a session's keys and gateway token from memory.
createMemorySignatureSecretStoreKeeps the unlock signature in the page's memory only.
createTabSignatureSecretStoreKeeps the unlock signature for the tab. This is the default.
createPersistentSignatureSecretStoreKeeps the unlock signature in the browser until it is wiped.
readRegistrationReads whether the user is registered now.
createRegistrationContextCreates the context a registration runs in.
registerRegisters the user, once, before their first deposit.
createDepositContextCreates the context a deposit runs in.
depositMoves tokens from the wallet into a private balance.
resolvePendingDepositLearns how a deposit whose outcome was unknown ended.
refundStrandedDepositReturns funds a version 0 deposit left halfway.
createTransferContextCreates the context a Private Send runs in.
transferPays another user from the private balance.
createWithdrawalContextCreates the context a withdrawal runs in.
withdrawMoves tokens out of the private balance to any address.
readBalancesReads the private balance from the device.
readHistoryReads past payments, one page at a time.
syncNoteStoreBrings the device up to date with Solana.
listReservedSpendsLists the payments that hold part of the balance.
releaseReservedNotesGives back what stopped payments hold.
findMintByIdentifierNames the token of a history item.
NimbusSdkErrorThe error the SDK throws when it cannot go on.
isNimbusSdkErrorRecognises a NimbusSdkError.
isNimbusSolanaFlowErrorRecognises the protocol's refusals.
proveWorkerRequestAnswers a proof request inside a prover worker of your own.
copy-assetsThe command that copies the SDK's browser files into your app.

Types

Types lists every exported type in alphabetical order. Here they are grouped by what they describe.

GroupTypes
Loading and settingsLoadNimbusSdkOptions, NimbusSdk, NimbusCluster, NimbusRoute, NimbusRoutingDefaults, NimbusSettings, NimbusEndpoints, NimbusGatewayEndpoint, NimbusNodeEndpoint, NimbusGatewayToken, NimbusMint, NimbusPlatform, NimbusBrowserPlatform, NimbusProving, NimbusProvingKeys, NimbusProvingKeyStatement, NimbusTiming
WalletsConnectedWallet, WalletConnectionResult, WalletDiscoveryOptions, WalletStandardAccount, WalletStandardSigner
SessionsNimbusSession, OpenNimbusSessionOptions, OpenNimbusSessionResult, NimbusRegistrationStanding, SignatureSecretKey, SignatureSecretReading, SignatureSecretStore, SignatureSecretStoreOptions
ContextsRegistrationContext, DepositContext, TransferContext, WithdrawalContext, RegistrationContextOptions, NimbusContextOptions, NimbusFlowRouting, NimbusZone
OptionsRegisterOptions, DepositOptions, TransferOptions, WithdrawOptions, SpendOptions, SentTransactionOptions, SyncFirstOptions, StrandedDepositRefundOptions, TransactionVersion, ConfirmationCommitment
ResultsRegistrationResult, DepositResult, TransferResult, WithdrawalResult, PendingDepositResolutionResult, StrandedDepositRefundResult, DepositSubmission, TransactionSubmission, SettledSpendOutcome, SpendSettlement
ProgressRegisterStage, DepositStage, TransferStage, WithdrawStage, RefundStage, SyncedStage, SettledStage
RefusalsSpendRefusal, WalletStoreRefusal, BeginAttemptRefusal, LeaseRefusal, MarkAttemptSentRefusal, MergeFailureCause
ErrorsNimbusSdkErrorReason, NimbusSolanaFlowError, NimbusSolanaFlowErrorReason
Balances, history and syncBalance, HistoryPage, HistoryPosition, NoteStoreSyncResult, NoteStoreSyncRound, SyncNoteStoreOptions
Reserved fundsReservedSpend, ReservedSpendState, ReleasedNotes
Prover workerProverWorkerRequest, ProverWorkerAnswer, ProverWorkerDeps, WitnessGraphHandle

The SDK also exports Wallet, the Wallet Standard's own type.

Next

Last updated

On this page