Contract Templates
Upload contract template
Upload a new contract template. This contract template will be available for the workspace
post/tokenization/templates
Request
- Base URLhttps://api.fireblocks.io/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
{
"name": "My Contract",
"description": "an ERC20 implementation",
"longDescription": "a full ERC20 implementation, containing the following:\n\n - mint\n - burn\n",
"type": "FUNGIBLE_TOKEN",
"docs": {
"details": "A token that can be minted and burned",
"events": "Upgraded(address): {\"details\": \"Emitted when the implementation is upgraded.\"}",
"kind": "dev",
"methods": {
"constructor": {
"details": "Initializes the contract"
}
},
"version": 1
},
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "implementation",
"type": "address"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"stateMutability": "payable",
"type": "constructor"
}
],
"protocol": "ETH"
}Response
Contract was uploaded successfully
Example response
{
"id": "b70701f4-d7b1-4795-a8ee-b09cdb5b850d",
"name": "My Contract",
"description": "an ERC20 implementation",
"longDescription": "a full ERC20 implementation, containing the following:\n\n - mint\n - burn\n",
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "implementation",
"type": "address"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"stateMutability": "payable",
"type": "constructor"
}
],
"docs": {
"details": "A token that can be minted and burned",
"events": "Upgraded(address): {\"details\": \"Emitted when the implementation is upgraded.\"}",
"kind": "dev",
"methods": {
"constructor": {
"details": "Initializes the contract"
}
},
"version": 1
},
"owner": "b70701f4-d7b1-4795-a8ee-b09cdb5b850d",
"vendor": {
"id": "b70701f4-d7b1-4795-a8ee-b09cdb5b4453",
"name": "Fireblocks"
},
"isPublic": true,
"canDeploy": true,
"type": "FUNGIBLE_TOKEN"
}Changes
No recorded changes to this operation across all 1 revision of this API.