Zebec
Search…
Withdraw Stream
For withdrawing from streamed payment or streaming payment, send the sender address , receiver address, and the amount.
const withTransac = async () => {
const data = {
sender: "J75jd3kjsABQSDrEdywcyhmbq8eHDowfW9xtEWsVALy9",
receiver: "FuEm7UMaCYHThzKaf9DcJ7MdM4t4SALfeNnYQq46foVv",
pda: "3AicfRtVVXzkjU5L3yarWt2oMWSS32jfkPeeK5Hh9Hyz",
amount: 0.5,
};
const response = await withdrawNativeTransaction(data);
};

Withdraw Streamed Token

const data = {
sender: "J75jd3kjsABQSDrEdywcyhmbq8eHDowfW9xtEWsVALy9",
receiver: "FuEm7UMaCYHThzKaf9DcJ7MdM4t4SALfeNnYQq46foVv",
pda: "3AicfRtVVXzkjU5L3yarWt2oMWSS32jfkPeeK5Hh9Hyz",
amount: 0.5,
token:'2ibSirDWk5P68ZKmQQSxUMtiWQFRuanpPfMfaYzxgSRv' //token mint address
};
const response = await MultiTokenWithdraw(data);
Copy link