Skip to content

Nem::Transaction::Transfer.new #16

Description

@NimbusCs

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"]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions