Skip to main content

Usage

Parameters

  • encryptKey (string): PIN used to decrypt the private key
  • wallet (WalletData): Object with publicKey and encryptedPrivateKey
  • amount (string | number): Transfer amount
  • token (ChainToken): Token identifier. Use ChainToken.USDC
  • recipient (string): Destination wallet address
  • decimals (number, optional): Token decimals (default: 18)

Return Value

Returns a Promise that resolves to a transaction hash string.

Example Implementation

Always verify recipient addresses. Transfers on StarkNet are irreversible.