ExchangePointToToken

Exchange points to tokens

post

Exchange your points for tokens.Signatures are required to request this.Your wallet address, amount of exchange, nonce, and chain ID will be used for your signature.The exchange rate is based on the price of the token recorded by the validators by agreement.

Body
accountstringRequired

Wallet address of user

Example: 0x5650CD3E6E8963B43D21FAE60EE7A03BCEFCE766
amountstringRequired

Amount to be exchanged (info. decimals are 18)

Example: 100000000000000000000000
signaturestringRequired

Signature of user wallet

Example: 0x020d671b80fbd20466d8cb65cef79a24e3bca3fdf82e9dd89d78e7a4c4c045bd72944c20bb1d839e76ee6bb69fed61f64376c37799598b40b8c49148f3cdd88a1b
Responses
200Success
application/json
post
POST /v1/ledger/exchangePointToToken HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 239

{
  "account": "0x5650CD3E6E8963B43D21FAE60EE7A03BCEFCE766",
  "amount": "100000000000000000000000",
  "signature": "0x020d671b80fbd20466d8cb65cef79a24e3bca3fdf82e9dd89d78e7a4c4c045bd72944c20bb1d839e76ee6bb69fed61f64376c37799598b40b8c49148f3cdd88a1b"
}
200Success
{
  "code": 0,
  "data": {
    "txHash": "0x3798157a3f32c0ed7692f240eb83f3a3c2f6077c5ad7acf7a9a54d426d63632e"
  },
  "error": {
    "message": "Failed to check the validity of parameters"
  }
}