tokenCreate
POST/api/v1/recipes/tokens/create/
Create a new token
Request
- application/json
Body
required
name stringrequired
type stringrequired
Possible values: [MintBurnERC20
]
blockchainId integerrequired
vaultId stringrequired
args undefined[]required
Responses
- 201
- 400
- 404
- 503
Default Response
- application/json
- Schema
- Example (from schema)
Schema
error booleanrequired
Possible values: [false
]
statusCode numberrequired
Possible values: [201
]
data objectrequired
id stringrequired
name stringrequired
address stringrequired
blockchainId integerrequired
vaultId stringrequired
templateName stringrequired
deploymentStatus stringrequired
Possible values: [TO_BE_SENT
, FAILED_TO_SEND
, SENT
, CONFIRMED
, FAILED
]
{
"error": false,
"statusCode": 201,
"data": {
"id": "string",
"name": "string",
"address": "string",
"blockchainId": 0,
"vaultId": "string",
"templateName": "string",
"deploymentStatus": "TO_BE_SENT"
}
}
Default Response
- application/json
- Schema
- Example (from schema)
Schema
error booleanrequired
Possible values: [true
]
statusCode numberrequired
Possible values: [400
]
code stringrequired
Possible values: [errors.contract.noConstructor
, errors.contract.invalidArgs
]
data required
{
"error": true,
"statusCode": 400,
"code": "errors.contract.noConstructor",
"data": {}
}
Default Response
- application/json
- Schema
- Example (from schema)
Schema
error booleanrequired
Possible values: [true
]
statusCode numberrequired
Possible values: [404
]
code stringrequired
Possible values: [errors.recipe.typeNotFound
, errors.template.notFound
, errors.blockchain.notFound
, errors.vault.notFound
, errors.insufficientFunds
, errors.failedToEstimateTransaction
]
data required
{
"error": true,
"statusCode": 404,
"code": "errors.recipe.typeNotFound",
"data": {}
}
Default Response
- application/json
- Schema
- Example (from schema)
Schema
error booleanrequired
Possible values: [true
]
statusCode numberrequired
Possible values: [503
]
code stringrequired
Possible values: [errors.contract.failedToSend
]
data required
{
"error": true,
"statusCode": 503,
"code": "errors.contract.failedToSend",
"data": {}
}
Loading...