Is there a way to get the error string returned by a smart contract on requires() error?

I am calling into my smart contract using the caver-js send() call. The call is failing, which I think is probably valid, but I do not see the requires error string in the response, like I do on other EVM chains.

All I see is: “txError”: “0x9”,

Is there a way to get the actual error string, like on other EVM chains?

Hi, currently to get detail of your error log, it is only available from node level, so unless you are operating your own end-point node, it is hard to get detailed information using caver-js.

In my case, I usually prepare interface contract of my solidity code, and use Remix to interact with my contract for debugging. In klaytn, you can use Remix at

Hope this answer can help you.

BTW, this #kas:kasen channel is no longer maintained and KAS forum has been move to So if you have any further question related to KAS node, please use above link.

For future question related to klaytn core or caver, you can still use this forum but please select #Caver or #Klaytn category.

Thank you,