React Native SDK
Types
API reference for common types and interfaces.
Types
Common TypeScript interfaces used throughout the SDK.
SignAndSendTransactionPayload
Payload structure for transaction signing.
interface SignAndSendTransactionPayload {
readonly instructions: TransactionInstruction[];
readonly transactionOptions: {
readonly feeToken?: string;
readonly addressLookupTableAccounts?: AddressLookupTableAccount[];
readonly computeUnitLimit?: number;
readonly clusterSimulation: 'devnet' | 'mainnet';
};
}WalletInfo
Represents the connected wallet's state.
interface WalletInfo {
readonly credentialId: string; // Unique WebAuthn credential ID (Base64). Used for authentication.
readonly passkeyPubkey: number[]; // Raw public key bytes of the passkey.
readonly smartWallet: string; // **YOUR SOLANA WALLET ADDRESS** (Base58). Use this to receive funds.
readonly walletDevice: string; // Internal PDA for device management.
readonly platform: string; // Origin platform ('android' | 'ios').
}SignOptions
Options passed to signMessage.
interface SignOptions {
redirectUrl: string;
onSuccess?: (result: any) => void;
onFail?: (error: Error) => void;
}