Provider API

Typed reference for the Zcash API exposed by the Noir Wallet SDK.

All methods are available on wallet.zcash. Detecting the provider does not connect an account or open the wallet.

import { getNoirWallet } from '@noir-wallet/sdk'

const wallet = getNoirWallet()
if (!wallet) throw new Error('Noir Wallet is not installed')

Call getAccounts() silently during startup. Only call connect() after a deliberate user action.

Account and balance methods

Account reads do not open approval windows. connect() is the exception: it always lets the user review the accounts shared with your site.

Transactions

Transaction methods operate on the active authorized account. Sending and shielding always require the user to approve the action in Noir Wallet.

Identity methods

The default signing mode is current. Use derived for a privacy-preserving identity that is not the main transparent address. legacy_index0 exists for integrations that require the legacy BIP-44 index 0 identity.

Identity methods are not supported for Keystone accounts. Keystone's Zcash flow signs transactions, not arbitrary messages.

Connection lifecycle

Errors and advanced usage