Using the Public API for transaction and currency

Fee estimate

Endpoint POST /api/public/transaction/fee

POST https://api.cpay.world/api/public/transaction/fee

Endpoint, allows you to estimate transactions. You need to log in with the wallet in conjunction with the merchant.

Request Body

Name
Type
Description

to*

String

amount*

Number

priority

Boolean

Parameter for defining the high priority of the transaction

{
  "data": {
    "fee": 0
  }
}

Merchant currency

Endpoint GET /api/public/currency

GET https://api.cpay.world/api/public/currency

The endpoint allows you to get all the currencies that the merchant supports. You need to log in to the merchant.

Query Parameters

Name
Type
Description

page

Nubmer

limit

Number

{
  "data": {
    "page": 0,
    "pages": 0,
    "countItems": 0,
    "currencies": [
      {
        "_id": "string",
        "name": "string",
        "title": "string",
        "nodeType": "string",
        "currencyType": "string"
      }
    ]
  }
}

Last updated

Was this helpful?