Issue a new token
Facilitates the creation of a new token, supporting both EVM-based and Stellar/Ripple platforms. For EVM, it deploys the corresponding contract template to the blockchain and links the token to the workspace. For Stellar/Ripple, it links a newly created token directly to the workspace without deploying a contract. Returns the token link with status "PENDING" until the token is deployed or "SUCCESS" if no deployment is needed. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, and Editor.
Request
- Base URLhttps://api.fireblocks.io/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
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
{
"blockchainId": "B7QG017M",
"assetId": "ETH_TEST5",
"vaultAccountId": "0",
"createParams": {
"contractId": "b70701f4-d7b1-4795-a8ee-b09cdb5b850d",
"deployFunctionParams": [
{
"internalType": "string",
"name": "name",
"type": "string",
"value": "name"
},
{
"internalType": "string",
"name": "symbol",
"type": "string",
"value": "symbol"
},
{
"components": [
{
"internalType": "bool",
"name": "_isMintable",
"type": "bool"
}
],
"internalType": "struct MyStruct",
"name": "customConfigProps",
"type": "tuple",
"value": [
{
"internalType": "bool",
"name": "_isMintable",
"type": "bool",
"value": false
}
]
}
]
},
"fee": "2000",
"feeLevel": "MEDIUM",
"txNote": "Token creation transaction for new stablecoin",
"externalId": "0192e4f5-924e-7bb9-8e5b-c748270feb38"
}Response
Token was created successfully
Example response
{
"id": "fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb",
"status": "COMPLETED",
"type": "NON_FUNGIBLE_TOKEN",
"refId": "BQ5R_MY_TOKEN",
"displayName": "My Simple ERC20 Token",
"tokenMetadata": {
"assetId": "BQ5R_MY_TOKEN",
"name": "MyToken",
"symbol": "MYT",
"networkProtocol": "ETH",
"totalSupply": "1000000000000000",
"type": "ERC20",
"contractAddress": "0x1234567890abcdef1234567890abcdef12345678",
"issuerAddress": "rGyXjc5d7s17vvt3NtKKascvJrnSxV21kQ",
"testnet": true,
"blockchain": "ETH_TEST5",
"decimals": 18,
"vaultAccountId": "0"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.