I just want to ask if there is any way to check if a transaction (sending a BNB) is a success or failed before doing a Moralis.Object.extend(âHistoryTransactionâ)
Scenario:
1.) Sending a BNB to a specific address
2.) If it went through create a new data under HistroyTransaction
3.) if not it will not create a data
I just want a checker upon using
const { fetch, isFetching, } = useWeb3Transfer({
type: "native",
amount: Moralis.Units.ETH(0.1),
receiver: "0x93dC7618b0ffd14f1ea148478D8Ab3e6A7bf9512",
});
before doing a save in database. Iâm using ReactJS
Thank you!