CrestFi
  • 🫐CrestFi
  • 🚀Getting Started
    • ☃️How to get started?
    • 🤑Benefits of Using CrestFi
    • 💵Deposit
    • ⏳Start Streaming
    • 💰Withdraw Funds
  • 🔒Safe
    • 🗝️Create Safe
    • 💵Deposit in Safe
    • 💸Sending a Transaction
    • ⚧Signing a Transaction
  • CrestFi Evm
    • 📦CrestFi Evm Sdk
      • CrestFi Stream Client
        • Creating Clients
        • Whitelisting Tokens
        • Deposit into Crest Wallet
        • Withdraw from Crest Wallet
        • Initiating a Stream
        • Pause/Resume/Cancel Stream
        • Updating a Stream
        • Withdraw Streamed Tokens
        • Getting Stream Details
      • CrestFi Bulk Client
        • Bulk Instant Transfer
      • CrestFi Multisig Stream
        • NFT
Powered by GitBook
On this page
Export as PDF
  1. CrestFi Evm
  2. CrestFi Evm Sdk
  3. CrestFi Stream Client

Withdraw Streamed Tokens

To withdraw tokens from a stream by receiver, use the withdrawStream() method:

const streamBytes = "0xabcdef1234567890.."; // Stream ID
const tokenAddress = "0x1234567890abcdef..";
const amount = "50";
const zebecWalletWithdrawal = false;

const receipt = await zebecReceiverClient.withdrawStream(
  streamBytes,
  tokenAddress,
  amount,
  zebecWalletWithdrawal
);

console.log("Withdraw Stream Receipt:", receipt);
PreviousUpdating a StreamNextGetting Stream Details

Last updated 4 months ago

📦