Zebec
Search…
Cancel Transaction
For cancelling streaming payment, send the sender and receiver address, amount.
const cancelTransac = async () => {
const data = {
sender: "J75jd3kjsABQSDrEdywcyhmbq8eHDowfW9xtEWsVALy9",
receiver: "FuEm7UMaCYHThzKaf9DcJ7MdM4t4SALfeNnYQq46foVv",
pda: "3AicfRtVVXzkjU5L3yarWt2oMWSS32jfkPeeK5Hh9Hyz",
};
const response = await cancelNativeTransaction(data);
};

Cancel Token

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