New Currency

/v2/app/coin/createCurrency

Using this API, developers will be able to create their own cryptocurrency.

As an analogy, think that you are setting up a United States Mint factory that can mint new US dollar bills.

{
  "currency": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
  "status": "QUEUED",
  "transactionUrl": "https://polygonscan.com/tx/0x51103659d8827d6d24732d1168de73390f4f387d58a8281944241657f1bc61d7",
  "transactionHash": "0x51103659d8827d6d24732d1168de73390f4f387d58a8281944241657f1bc61d7",
  "transactionId": "4872e8c0-3e7a-43df-ac15-ba894919cf33"
}

Upon calling this API, a transaction is raised and submitted to the Queue on blockchain. MetaKeep, behind the scenes, employs several strategies to make sure transactions succeed, and at the lowest cost.

You can get the status of this blockchain transaction by querying for transaction status by copying transactionId from this API response and querying it in Transaction Status API.

❗️

Replaying this API

Once you get a status response as QUEUED, replaying this API doesn't give you the latest status; Replaying the same API with the same Idempotency-Key results in the same response, always with status-QUEUED. You must query the Transaction Status API for the latest status.

As you would learn from the Transaction Status API docs, if a transaction failed, MetaKeep would have exhausted all feasible smart AI based strategies to recover from failure, that would have been attempted by humans and that the "FAILED" status, if shown, is final.

🚧

Api Error Status

You can find error status returned by the api here.

© Copyright 2024, Passbird Research Inc.

Language
Authorization
Header
Click Try It! to start a request and see the response here!