Skip to main content

Usage

Parameters

  • externalUserId (string): Your application’s unique identifier for the user
  • bearerToken (string): Bearer token for authentication

Return Value

Returns a Promise that resolves to an object containing:
  • publicKey (string): The wallet’s public address on StarkNet
  • encryptedPrivateKey (string): The encrypted private key for the wallet

Example Implementation

  • createWallet - Create a new wallet for users who don’t have one
  • transfer - Send tokens from the retrieved wallet