/construction/submit
POST https://rosetta.s0.b.hmny.io/construction/submit
Overview
This endpoint is online.
This endpoint submits a pre-signed transaction to the node without waiting for the transaction to be finalized.
Reference Rosetta Documentation
Harmony Specific Documentation
Submission Errors
It is possible that by the time a transaction is submitted to the mempool, some previously validated state may be invalid. Moreover, it is possible that some more intricate state consideration and/or verification (like other pending transactions) invalidates the construction transaction. This endpoint returns any such error upon submission, however, it is possible that the transaction is invalidated after the submission. Therefore, you should keep an eye out for the transaction using the /mempool
endpoint and/or use the hmyv2_getCurrentTransactionErrorSink
RPC method to fetch the reason why a transaction was dropped from the pool.
Request Body
{"network_identifier"=>{"blockchain"=>"Harmony", "network"=>"Testnet", "sub_network_identifier"=>{"network"=>"shard 0", "metadata"=>{"is_beacon"=>true}}}, "signed_transaction"=>"{\"rlp_bytes\":\"+HGAhDuaygCCUggBAZSxrDLBmRDdJDW3UkCgRdUu5MZbrYwO7O1MokLMSCB7aOqAJ6Dp98FOTB0xe8I0mhv7eJ45n2HRYar2EvLVUXpEEea+pqAIVlqD/BI04sV122jkgGE200K0oB+3nB6FFOVQogRj1A==\",\"is_staking\":false,\"contract_code\":\"0x\",\"from\":{\"address\":\"one155jp2y76nazx8uw5sa94fr0m4s5aj8e5xm6fu3\",\"metadata\":{\"hex_address\":\"0xA5241513DA9F4463F1d4874b548dFBAC29D91f34\"}}}"}