Extends
Constructors
new SolanaWallet()
new SolanaWallet(Defined in: packages/wallets/src/wallets/solana.ts:18wallet):SolanaWallet
Parameters
Returns
SolanaWallet
Overrides
Wallet.constructor
Properties
Accessors
apiClient
Get Signature
get apiClient(): WalletsApiClient
Defined in: packages/wallets/src/wallets/wallet.ts:273
Returns
WalletsApiClient
Inherited from
Wallet.apiClient
recovery
Get Signature
get recovery():Defined in: packages/wallets/src/wallets/wallet.ts:298SignerConfigForChain<C>
Experimental
Get the primary recovery signer config. Use recoveryMethods for the full list on wallets
created with several recovery signers.
Returns
SignerConfigForChain<C>
The recovery signer config
This API is experimental and may change in the future
Inherited from
Wallet.recovery
recoveryMethods
Get Signature
get recoveryMethods():Defined in: packages/wallets/src/wallets/wallet.ts:308RecoverySignerConfigForChain<C>[]
Experimental
Get every recovery signer config of the wallet. Wallets on chains that support a single recovery
signer always return one entry.
Returns
RecoverySignerConfigForChain<C>[]
The recovery signer configs
This API is experimental and may change in the future
Inherited from
Wallet.recoveryMethods
signer
Get Signature
get signer():Defined in: packages/wallets/src/wallets/wallet.ts:178SignerAdapter<keyofSignResultMap> |undefined
Returns
SignerAdapter<keyof SignResultMap> | undefined
Inherited from
Wallet.signer
Methods
addSigner()
addSigner<Defined in: packages/wallets/src/wallets/wallet.ts:623 Add a signer to the wallet. Always uses the recovery signer internally to approve the registration. If the signer being added is the current operational signer, it will be reassembled with the new locator. Otherwise, the original signer is restored after the operation.T>(signer,options?):Promise<TextendsPrepareOnly<true> ?Signer&object:Signer>
Type Parameters
Parameters
Returns
Promise<T extends PrepareOnly<true> ? Signer & object : Signer>
Inherited from
Wallet.addSigner
approve()
approve<Defined in: packages/wallets/src/wallets/wallet.ts:576 Approve a transaction or signatureT>(params):Promise<ApproveResult<T>>
Type Parameters
Parameters
Returns
Promise<ApproveResult<T>>
The transaction or signature
Inherited from
Wallet.approve
approveTransaction()
approveTransaction(Defined in: packages/wallets/src/wallets/wallet.ts:552params):Promise<Error>
Parameters
Returns
Promise<Error>
The transaction
Deprecated
Useapprove instead.
Approve a transaction
Inherited from
Wallet.approveTransaction
balances()
balances(Defined in: packages/wallets/src/wallets/wallet.ts:325 Get the wallet balances - always includes USDC and native token (ETH/SOL)tokens?):Promise<Balances<"solana">>
Parameters
Returns
Promise<Balances<"solana">>
The balances returns nativeToken, usdc, tokens
Throws
If the balances cannot be retrievedInherited from
Wallet.balances
isSignerApproved()
isSignerApproved(Defined in: packages/wallets/src/wallets/wallet.ts:997 Check if a signer is approved and usable for the current wallet chain.signerLocator):Promise<boolean>
Parameters
Returns
Promise<boolean>
true if the signer is approved for this chain, false if it is not approved or not registered
Throws
if the approval state could not be fetchedInherited from
Wallet.isSignerApproved
needsRecovery()
needsRecovery(): boolean
Defined in: packages/wallets/src/wallets/wallet.ts:1005
Whether the wallet needs recovery (signer registration) before the next transaction.
Returns
boolean
true if recovery is needed
Inherited from
Wallet.needsRecovery
nfts()
nfts(Defined in: packages/wallets/src/wallets/wallet.ts:394 Get the wallet NFTsparams):Promise<unknown>
Parameters
Returns
Promise<unknown>
The NFTs
Inherited from
Wallet.nfts
recover()
recover():Defined in: packages/wallets/src/wallets/wallet.ts:1021 Register a device signer with the wallet using the recovery signer. Generates a new device key and registers it on-chain. Returns early if the device signer’s locator is already approved on-chain.Promise<void>
Returns
Promise<void>
Inherited from
Wallet.recover
removeSigner()
removeSigner<Defined in: packages/wallets/src/wallets/wallet.ts:783 Remove a signer from the wallet. Always uses the recovery signer internally to approve the removal.T>(signer,options?):Promise<RemoveSignerReturnType>
Type Parameters
Parameters
Returns
Promise<RemoveSignerReturnType>
Inherited from
Wallet.removeSigner
send()
send<Defined in: packages/wallets/src/wallets/wallet.ts:469 Send a token to a wallet or user locatorT>(to,token,amount,options?):Promise<Transaction<TextendsPrepareOnly<true> ?true:false>>
Type Parameters
Parameters
Returns
Promise<Transaction<T extends PrepareOnly<true> ? true : false>>
The transaction
Inherited from
Wallet.send
sendTransaction()
sendTransaction<Defined in: packages/wallets/src/wallets/solana.ts:56 Send a raw Solana transaction.T>(params):Promise<Transaction<TextendsPrepareOnly<true> ?true:false>>
Type Parameters
Parameters
Returns
Promise<Transaction<T extends PrepareOnly<true> ? true : false>>
The transaction result
signerIsRegistered()
signerIsRegistered(Defined in: packages/wallets/src/wallets/wallet.ts:987 Check if a signer is registered in this wallet.signerLocator):Promise<boolean>
Parameters
Returns
Promise<boolean>
true if the signer is registered
Inherited from
Wallet.signerIsRegistered
signers()
signers():Defined in: packages/wallets/src/wallets/wallet.ts:1038 List the signers for this wallet. Returns full signer objects with status. For EVM wallets, only signers with an approval (pending or completed) for the wallet’s chain are included.Promise<Signer[]>
Returns
Promise<Signer[]>
The signers
Inherited from
Wallet.signers
stagingFund()
stagingFund(Defined in: packages/wallets/src/wallets/wallet.ts:364 Funds the wallet with Crossmint’s stablecoin (USDXM). Note: This method is only available in staging environments and exclusively supports USDXM tokens. It cannot be used in production environments.amount,chain?):Promise<FundWalletResponse>
Parameters
Returns
Promise<FundWalletResponse>
The funding response
Throws
If the funding operation fails or if called in a production environmentInherited from
Wallet.stagingFund
transaction()
transaction(Defined in: packages/wallets/src/wallets/wallet.ts:426 Get a transaction by idtransactionId):Promise<WalletsTransactionV2025ResponseDtoClass>
Parameters
Returns
Promise<WalletsTransactionV2025ResponseDtoClass>
The transaction
Throws
If the transaction cannot be retrievedInherited from
Wallet.transaction
transactions()
transactions():Defined in: packages/wallets/src/wallets/wallet.ts:413 Get the wallet transactionsPromise<GetTransactionsResponse>
Returns
Promise<GetTransactionsResponse>
The transactions
Throws
If the transactions cannot be retrievedInherited from
Wallet.transactions
transfers()
transfers(Defined in: packages/wallets/src/wallets/wallet.ts:441 Get the wallet transfersparams):Promise<WalletsActivityResponseUnstableDto>
Parameters
Returns
Promise<WalletsActivityResponseUnstableDto>
The transfers
Throws
If the transfers cannot be retrievedInherited from
Wallet.transfers
useSigner()
useSigner(Defined in: packages/wallets/src/wallets/wallet.ts:841 Set the active signer for this wallet. Accepts a signer config object. The locator is inferred internally. Works for both registered signers and the recovery signer. For passkey signers: if nosigner):Promise<void>
id is provided, the wallet will auto-select the passkey
if exactly one passkey signer is registered. If multiple passkeys exist, an id must be specified.
For device signers: if no device key is found locally, the signer will be created
automatically during the next transaction (via recovery).
For external-wallet signers: the config object must include an onSign callback
(applies to both registered and recovery signers).
Parameters
Returns
Promise<void>
Inherited from
Wallet.useSigner
waitForInit()
waitForInit():Defined in: packages/wallets/src/wallets/wallet.ts:186 Wait for the wallet’s internal signer initialization to complete. After this resolves,Promise<void>
needsRecovery() reflects the true state.
Returns
Promise<void>
Inherited from
Wallet.waitForInit
from()
Defined in: packages/wallets/src/wallets/solana.ts:36staticfrom(wallet):SolanaWallet
Parameters
Returns
SolanaWallet
