/mempool

POST https://rosetta.s0.b.hmny.io/mempool

Overview

This endpoint gets all Transaction Identifiers in the mempool.

Reference Rosetta Documentation

Harmony Specific Documentation

Pool contents

The Harmony transaction pool contains 'pending' transactions (transactions that can be added to the next block) and 'queued' transactions (transactions that can only be added to some block after the next block). Due to the short block time, this endpoint returns all of the mempool transactions without any easy way to discern which list it was from. In general, transactions that are always in the mempool across multiple blocks, tend to be these 'queued' transactions.

Stuck transaction in pool

Normally, stuck transactions tend to be 'queued' transaction because they were submitted with a wrong nonce or some previous transaction from the same account got rejected (for insufficient funds, nonce to low, etc...). All 'queued' transactions will be dropped after an hour if the sender's account does not submit any more transactions. Alternatively, you can replace the 'queued' transaction (say to have it transfer 0 tokens) by paying double the gas fee for that transaction, then submit a new (correct) transaction afterward.

Request Body

{"network_identifier"=>{"blockchain"=>"Harmony", "network"=>"Testnet", "sub_network_identifier"=>{"network"=>"shard 0", "metadata"=>{"is_beacon"=>true}}}}

RESPONSES

status: OK

{"transaction_identifiers":[{"hash":"0x7c4e7cb00d0f8d88a5198e17f8223390e3dd7355a6f1444744f214d4e3e81b53"}]}