Nem::Transaction::Transfer.new
Good, I am conducting tests with respect to controlling and sending transfers from a wallet, I calculate the commission of the transaction through a fixed value, is there any way to calculate it taking into account the message?
My messages always consume 0.15 XEM, but I try to send the transaction and I get Error.
Or do I change the way to enter amounts in the NEM Endpoint?
tx = Nem::Transaction::Transfer.new(wallet, mt, msj, timestamp: Time.now - 1000) req = Nem::Request::Announce.new(tx, kp)
E, [2020-01-20T07:41:29.458832 #30095] ERROR -- : execution expired "Message: FAILURE_INSUFFICIENT_BALANCE" "TransactionHash: f36f3d58ef4d8e24d44ddaeb96fcac9cf72ed1ef895de5db1c834561d466a1bd" => [false, "f36f3d58ef4d8e24d44ddaeb96fcac9cf72ed1ef895de5db1c834561d466a1bd"]