Burn an ERC20 token
POST/admin/tokens/burn
Burns an ERC20 token - Token must be owned by project's backend account
Request
Query Parameters
apiKey string
(Required) You Public API key
Example: {{publicKey}}
Header Parameters
API-SECRET string
(Required) Your Secret API key
Example: {{secretKey}}
Content-Type string
Example: application/json
Accept string
Example: application/json
- application/json
 
Body
tokenAddress string
amount string
from string
Responses
- 201
 - 400
 - 401
 - 403
 
Created
- application/json
 
- Schema
 - Example (from schema)
 - Example
 
Schema
object
{}
{
  "job": {
    "status": "pending",
    "_id": "62b196528c261600149439f7",
    "name": "adminApprove",
    "data": {
      "tokenAddress": "0xD5BB30E6BBc3409AD934111C419b04c3874d3059",
      "bridgeType": "home",
      "accountAddress": "0xbC3bA1ae0a4Cf6269F79d0D30767C60cB58D7Ff2",
      "amount": "10000000000000000000",
      "wallet": "0xe3c7034E90FF8548773FfdCD6897761D2742cD0d",
      "spender": "0xbC3bA1ae0a4Cf6269F79d0D30767C60cB58D7Ff2",
      "burnFromAddress": "0xe3c7034E90FF8548773FfdCD6897761D2742cD0d",
      "correlationId": "1001-1"
    },
    "createdAt": "2022-06-21T09:58:42.238Z",
    "updatedAt": "2022-06-21T09:58:42.238Z",
    "__v": 0
  }
}
Bad Request
- application/json
 
- Schema
 - Example (from schema)
 - Example
 
Schema
object
{}
{
  "statusCode": 400,
  "message": "Bad Request"
}
Unauthorized
- text/plain
 
- Schema
 
Schema
string
Forbidden
- text/plain
 
- Schema
 
Schema
string
Loading...