walletCreate
POST/api/v1/recipes/wallets/create/
Create a wallet
Request
- application/json
Body
required
name stringrequired
blockchainId integerrequired
vaultId stringrequired
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.recipe.contractNotDeployed
, errors.contract.functionNotFound
, errors.contract.invalidArgs
]
data required
{
"error": true,
"statusCode": 400,
"code": "errors.recipe.contractNotDeployed",
"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.blockchain.notFound
, errors.template.notFound
, errors.vault.notFound
, errors.insufficientFunds
, errors.failedToEstimateTransaction
]
data required
{
"error": true,
"statusCode": 404,
"code": "errors.blockchain.notFound",
"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...