Why API returns a tx hash when I do not have enough funds?

When using theAPI for sending a transfer transaction if I do not have enough XEMs to send for some reason I still get the hash back. Here is the result:

{“innerTransactionHash”:{},“code”:5,“type”:1,“message”:“FAILURE_INSUFFICIENT_BALANCE”,“transactionHash”:{“data”:“SOME_HASH”}}

Yes, the hash is not visible in the explorer and yes, the message tells clearly that I do not have enough funds, but why do I get a tx_hash?

I guess NIS first create transaction and next it’s validated. That’s why it’s sending back tx hash.
It should be also helpful to have transaction identifier if you want do some debugging and check NIS logs.

1 Like