I am using the solana candy-machine for minting the nft.
When i call smart contract function in javascript
import * as anchor from "@project-serum/anchor";
let program = new anchor.Program(idl, programId, provider);
let result = await program.rpc.someFunc(); //here is the smart contract function
browser will show pop up for you to approve the transaction.
is There any way to know if user click cancel or approve?
In ethereum, it has something like below:
.on("transactionHash", function(hash) {
…
})
.on("error", function(error, receipt) {
…
});
is it possible to do it in candy machine? I want to do something after user click approved in transaction