Contract Templates
Deploy contract
Deploy a new contract by contract template id. If you wish to deploy a token (ERC20, ERC721 etc), and create asset please use POST /tokenization
post/tokenization/templates/{contractTemplateId}/deploy
Request
- Base URLhttps://api.fireblocks.io/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
contractTemplateIdstring required
The Contract Template identifier
Headers
Idempotency-Keystring
A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.
Request body
Example request
{
"assetId": "ETH_TEST5",
"vaultAccountId": "0",
"constructorParameters": [
{
"internalType": "string",
"name": "name_",
"type": "string",
"value": "TokenName"
},
{
"internalType": "string",
"name": "symbol_",
"type": "string",
"value": "TokenSymbol"
}
],
"fee": "2000",
"feeLevel": "MEDIUM"
}Response
Contract was deployed successfully
Example response
{
"txId": "b70701f4-d7b1-4795-a8ee-b09cdb5b850d"
}Changes
No recorded changes to this operation across all 1 revision of this API.