ENSC Business API
Business DashboardWebsite
  • Introduction
    • Use Cases
    • Configurations
  • Ready To Integrate?
  • Getting Started
    • Security
      • Generating Keys
      • Encrypting / Decrypting Request
  • Integrations
    • Contract Address
    • Enums
    • Authorization
    • Endpoints
      • Get Bank Lists
      • Token Balance
      • Token Approval
      • Mint
      • Mint Allocation
      • Redeem
      • Transfer
      • Withdraw
      • Verify Payout/Withdrawal
  • Libraries/SDKs
    • Client Libraries
Powered by GitBook
On this page
  1. Integrations
  2. Endpoints

Mint

Mint or Issue ENSC

POST /mint

This endpoint mints or issues ENSC tokens by generating an unsigned transaction. It requires that the asset symbol is "ENSC", verifies that the recipient is eligible to mint and confirms that the amount does not exceed the recipient’s mint allocation. Upon successful validation, it returns the unsigned transaction details.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <api_key>

Body

Name
Type
Description

recipient

string

The wallet address that will receive the minted tokens.

amount

number

The amount to mint (in whole tokens).

assetSymbol

string

The asset symbol to mint (must be "ENSC").

Example

{
  "recipient": "0xRecipientAddressABC123",
  "amount": 500,
  "assetSymbol": "ENSC"
}
{
  "status": 200,
  "message": "Transaction processed successfully",
  "data": {
    "to": "0xTokenContractAddressXYZ",
    "value": 0,
    "gasLimit": "0x186a0",
    "gasPrice": "20000000000",
    "nonce": "5",
    "data": "0x40c10f19000000000000000000000000xRecipientAddressABC12300000000000000000000000000000000000000000000000000000000001f4",
    "gasPrice": "20000000000",
    "nonce": "5"
  }
}

Error Responses

{
  "status": 400,
  "error": "Invalid Request",
  "message": "Invalid recipient address",
  "data": null
}
// If the asset symbol is not "ENSC", the service returns an error:
{
  "status": 400,
  "error": "Invalid Request",
  "message": "Invalid asset symbol, only ENSC is supported",
  "data": null
}
{
  "status": 403,
  "error": "Forbidden",
  "message": "Recipient is not allowed to mint",
  "data": null
}
// If the requested amount exceeds the recipient’s mint allocation:
{
  "status": 400,
  "error": "Invalid Request",
  "message": "Recipient has reached their mint limit",
  "data": null
}
PreviousToken ApprovalNextMint Allocation

Last updated 2 months ago