Qortal Project

The future of blockchain platforms

User Tools

Site Tools


Sidebar

Qortal Project Wiki

Important Notices

Introduction

Project Model

Minting

Communications

Trade Portal

Data Hosting

Voting System

Hardware

Frequently Asked Questions (FAQ)

How-To Guides

Node Setup Guides

Third-Party Services

trade_portal_coin_recovery

Trade Portal Coin Recovery

LTC, DOGE, DGB, or RVN Recovery

If you are buying QORT (by spending LTC, DOGE, DGB, or RVN) and the trade fails, it should enter the "REFUNDING" state after 1 hour. This happens occasionally if they buyer and seller's nodes aren't able to communicate properly. The LTC, DOGE, DGB, or RVN should be returned to your wallet with around 30 mins of the trade entering the REFUNDING state.

If for some reason you have not received the LTC / DOGE / DGB / RVN refund (or the purchased QORT) after 2 hours, you can call the refundAll API to retry any failed refunds.

For this, you will need your node's API key, which can be found in the apikey.txt file in the folder that you installed the core. This will be the same place that you have the qortal.jar and db folder. Copy the contents of this apikey.txt file to your clipboard, then visit this link:

http://localhost:12391/api-documentation/#/Cross-Chain%20(Hash%20time-locked%20contracts)/refundAllHtlc

Under "POST /crosschain/htlc/refundAll", click "Try it out", paste the API key, then click "Execute".

`true` will be returned if anything was able to be refunded. `false` will be returned if there is nothing to refund. Alternatively, an error will be returned if it's unable to run the refund process.

As an alternative to the link above, you can use the command line (replace `apiKeyGoesHere` with your API key):

curl -X POST "http://localhost:12391/crosschain/htlc/refundAll" -H "accept: text/plain" -H "X-API-KEY: apiKeyGoesHere"

Either method is fine and they both achieve the same result.

trade_portal_coin_recovery.txt · Last modified: 05/11/2022 20:15 by quickmythril