Getting Errors from Etherscan

Hi.
Question.
If [Transactions] have status false, can i get text message from contract
like at etherscan.io
STATUS: Fail with error ‘Not enough Ether provided.’
when i receive error log … there no text
here is function how gows payment

const options3 = {
chain: ChainName,
contractAddress: SmartContract,
functionName: “mint”,
abi: ABI,
msgValue: Moralis.Units.ETH(PriceToPay),
params: {_to: wallet, _count: NftToMint},
awaitReceipt: false
};

const mint = await Moralis.executeFunction(options3);
.on(“error”, (error) => { console.log(“receipt” + JSON.stringify(error));});

RESULT:
{
“blockHash”: “0x58d16893a8230d01e0af6ab05b9eb552c53edf28f4c63b8681f8c89a6d612dc4”,
“blockNumber”: 9762055,
“contractAddress”: null,
“cumulativeGasUsed”: 525604,
“effectiveGasPrice”: “0x9502f909”,
“from”: “0xddfd0a3448a932d53b317309f9f8fa8717bff64a”,
“gasUsed”: 36505,
“logsBloom”: “0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000”,
“status”: false,
“to”: “0x2a016f8d88ce8a36256d13be4706d8b27c06b142”,
“transactionHash”: “0x532dc07ae7357cebc9ca359f5fb81b8748f283ebd155e8a99404da391e2d5719”,
“transactionIndex”: 5,
“type”: “0x2”,
“events”: {}
}

is it any possability get from STATUS: Fail with error ‘Not enough Ether provided.’
from this transaction
THANKS IN ADVANCE!

You can’t get that error massage that way, I think that etherscan gets that error massage by rerunning that transaction.

Were you able to solve this?
I also need to get the error message from my smart contract to display on the website and havent been able to do so using executeFunction

1 Like

it is not easy to get that message, and I don’t think that you can get it with executeFunction