Zebec
Search…
Pause Native Token
For Pausing streaming payment, send the sender address, and receiver's address.
const pauseTransac = async () => {
const data = {
sender: "J75jd3kjsABQSDrEdywcyhmbq8eHDowfW9xtEWsVALy9",
receiver: "FuEm7UMaCYHThzKaf9DcJ7MdM4t4SALfeNnYQq46foVv",
pda: "3AicfRtVVXzkjU5L3yarWt2oMWSS32jfkPeeK5Hh9Hyz", // use saved pda returned from initNativeTransaction()
};
const response = await pauseNativeTransaction(data);
};

Pause Token

const data = {
sender: "J75jd3kjsABQSDrEdywcyhmbq8eHDowfW9xtEWsVALy9",
receiver: "FuEm7UMaCYHThzKaf9DcJ7MdM4t4SALfeNnYQq46foVv",
pda: "3AicfRtVVXzkjU5L3yarWt2oMWSS32jfkPeeK5Hh9Hyz", // use saved pda returned from initNativeTransaction()
token:'2ibSirDWk5P68ZKmQQSxUMtiWQFRuanpPfMfaYzxgSRv' //token mint address
};
const response = await MultiTokenPause(data);
};
Copy link