Mint an ERC20 token
Mints an ERC20 token
- Token must be owned by project's backend account
- toAddress is optional and when provided, then newly minted tokens will be transferred to that address
Query Parameters
apiKey string
(Required) You Public API key
Example: {{publicKey}}
Header Parameters
API-SECRET string
(Required) You Secret API key
Example: {{secretKey}}
Content-Type string
Example: application/json
Accept string
Example: application/json
- application/json
Request Body
tokenAddress string
amount string
toAddress string
Responses
- 201
- 400
- 401
- 403
Created
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"job": {
"status": "pending",
"_id": "62b17a6c8c26160014940e84",
"name": "mint",
"data": {
"tokenAddress": "0xaf03155DF641f77917803C634E9e4d808ea42ae4s",
"bridgeType": "home",
"accountAddress": "0xbC3bA1ae0a4Cf6269F79d0D30767C60cB58D7Ff2",
"amount": "1000000000000000000000",
"toAddress": "0xBE06B7DF117dc1D6cD63aa133d6f4dfa614ed87C"
},
"createdAt": "2022-06-21T07:59:40.927Z",
"updatedAt": "2022-06-21T07:59:40.927Z",
"__v": 0
}
}
Bad Request
- text/plain
- Schema
Schema
- string
Unauthorized
- text/plain
- Schema
Schema
- string
Forbidden
- text/plain
- Schema
Schema
- string
Loading...