harmony-one / go-sdk

Go-SDK & CLI tool to interact with the Harmony Blockchain
https://docs.harmony.one/
43 stars 45 forks source link

Transactions underpriced when trying to send batch transactions with JSON file #282

Closed MurphValidator closed 2 years ago

MurphValidator commented 2 years ago

Since July i've been sending batch transactions (30-40 transactions) using:

./hmy --node="https://api.s0.t.hmny.io" transfer --file /mnt/c/jsonfiles/weeklyrewards.json

Since the implementation of the 30 gwei gas price, I tried using:

./hmy --node="https://api.s0.t.hmny.io" transfer --file /mnt/c/jsonfiles/weeklyrewards.json \ --gas-price 30

and the output: [ { "transaction-hash": "0xa9118620a12e95c994c04817a5805a1ca8ef6e75feb2298527dbb1c9d5bf15ab", "errors": [ "[2022-01-17 02:55:41.951225] [Plain transaction] transaction gas-price is 1.000000000000000062 ONE; minimum gas price is 30.000000000000001868 ONE: transaction underpriced -- 2022-01-16 20:55:31 -0600 CST", "[2022-01-17 02:55:41.951228] error found for transaction hash: 0xa9118620a12e95c994c04817a5805a1ca8ef6e75feb2298527dbb1c9d5bf15ab", "[2022-01-17 02:55:41.951229] Failed to confirm transaction" ], "time-signed-utc": "2022-01-17 02:55:32.587103" } ]

jhd2best commented 2 years ago

please use the latest version. thanks. https://github.com/harmony-one/go-sdk/releases/tag/v1.2.9

MurphValidator commented 2 years ago

Tried it again after downloading new version and it worked for the first 4 transactions, then the 5th output this:

}, { "transaction-hash": "0x08d0e3d1ff856b4a2a584109089886b38c8d60972f346846f8a798405af361c3", "errors": [ "[2022-01-17 03:32:08.770516] [Plain transaction] transaction nonce is 660: nonce too low -- 2022-01-16 21:32:03 -0600 CST", "[2022-01-17 03:32:08.770519] error found for transaction hash: 0x08d0e3d1ff856b4a2a584109089886b38c8d60972f346846f8a798405af361c3", "[2022-01-17 03:32:08.770520] Failed to confirm transaction" ], "time-signed-utc": "2022-01-17 03:32:04.138491" } ]

MurphValidator commented 2 years ago

I ran it again, minus the first 4 transactions, and the rest went through no problem.