Download OpenAPI specification:Download
Token Factory service makes it trivial to generate and deploy token smart contracts for token specifications ERC20 (for fungible tokens) and ERC721 (for non-fungible tokens). Token Contracts manage the total supply, ownership, transfers, delegate spenders, as well as minting and burning tokens.
Kaleido API for marketplace services are authenticated using application credentials. The username and password must be created in the environment containing the service instance as "Application Credentials". For more details see the documentation on App Credentials.
Security Scheme Type | HTTP |
---|---|
HTTP Authorization Scheme | basic |
[- {
- "name": "string",
- "symbol": "string",
- "type": "string",
- "supply": "string",
- "burnable": true,
- "mintable": true,
- "deploy": true,
- "_id": "string",
- "address": "string",
- "from": "string",
- "created_at": "string",
- "updated_at": "string"
}
]
name required | string User defined name for the token contract |
symbol required | string User defined ticker symbol for the token contract |
type required | string The type of token contract to create (erc20 or erc721) |
supply | string The initial supply of tokens (erc20 only) |
burnable | boolean |
mintable | boolean |
deploy | boolean Set to true to deploy the contract to the chain |
{- "name": "string",
- "symbol": "string",
- "type": "string",
- "supply": "string",
- "burnable": true,
- "mintable": true,
- "deploy": true
}
{- "name": "string",
- "symbol": "string",
- "type": "string",
- "supply": "string",
- "burnable": true,
- "mintable": true,
- "deploy": true,
- "_id": "string",
- "address": "string",
- "from": "string",
- "created_at": "string",
- "updated_at": "string"
}
contract_address_or_id required | string |
[- {
- "name": "string",
- "symbol": "string",
- "type": "string",
- "supply": "string",
- "burnable": true,
- "mintable": true,
- "deploy": true,
- "_id": "string",
- "address": "string",
- "from": "string",
- "created_at": "string",
- "updated_at": "string"
}
]
contract_address required | string |
toAddress required | string The address to transfer to |
amount | string The amount of tokens to transfer (erc20 only) |
tokenId | string The tokenId to transfer (erc721 only) |
from | string The address used to sign the transfer transaction |
fromAddress required | string The address to transfer from |
{- "toAddress": "string",
- "amount": "string",
- "tokenId": "string",
- "from": "string",
- "fromAddress": "string"
}
{- "blockHash": "string",
- "blockNumber": 0,
- "contractAddress": "string",
- "cumulativeGasUsed": 0,
- "from": "string",
- "gasUsed": 0,
- "logs": [
- "string"
], - "logsBloom": "string",
- "status": true,
- "to": "string",
- "transactionHash": "string",
- "transactionNumber": "string"
}
contract_address required | string |
spenderAddress required | string The address to allow as a spender |
amount | string The amount of tokens to allocate to the spender (erc20 only) |
tokenId | string The tokenId to allocate to the spender (erc721 only) |
from required | string The address used to sign the approve transaction |
{- "spenderAddress": "string",
- "amount": "string",
- "tokenId": "string",
- "from": "string"
}
{- "blockHash": "string",
- "blockNumber": 0,
- "contractAddress": "string",
- "cumulativeGasUsed": 0,
- "from": "string",
- "gasUsed": 0,
- "logs": [
- "string"
], - "logsBloom": "string",
- "status": true,
- "to": "string",
- "transactionHash": "string",
- "transactionNumber": "string"
}
contract_address required | string |
toAddress required | string The address to mint to |
amount | string The amount of tokens to mint (erc20 only) |
tokenId | string The tokenId to mint (erc721 only) |
tokenURI | string The tokenURI for the tokenId (erc721 only) |
from required | string The address used to sign the mint transaction |
{- "toAddress": "string",
- "amount": "string",
- "tokenId": "string",
- "tokenURI": "string",
- "from": "string"
}
{- "blockHash": "string",
- "blockNumber": 0,
- "contractAddress": "string",
- "cumulativeGasUsed": 0,
- "from": "string",
- "gasUsed": 0,
- "logs": [
- "string"
], - "logsBloom": "string",
- "status": true,
- "to": "string",
- "transactionHash": "string",
- "transactionNumber": "string"
}
contract_address required | string |
amount | string The amount of tokens to burn (erc20 only) |
tokenId | string The tokenId to burn (erc721 only) |
from required | string The address used to sign the burn transaction |
fromAddress | string The address to burn tokens from |
{- "amount": "string",
- "tokenId": "string",
- "from": "string",
- "fromAddress": "string"
}
{- "blockHash": "string",
- "blockNumber": 0,
- "contractAddress": "string",
- "cumulativeGasUsed": 0,
- "from": "string",
- "gasUsed": 0,
- "logs": [
- "string"
], - "logsBloom": "string",
- "status": true,
- "to": "string",
- "transactionHash": "string",
- "transactionNumber": "string"
}
contract_address required | string |
minterAddress required | string The address to add as a minter |
from required | string The address used to sign the burn transaction |
{- "minterAddress": "string",
- "from": "string"
}
{- "blockHash": "string",
- "blockNumber": 0,
- "contractAddress": "string",
- "cumulativeGasUsed": 0,
- "from": "string",
- "gasUsed": 0,
- "logs": [
- "string"
], - "logsBloom": "string",
- "status": true,
- "to": "string",
- "transactionHash": "string",
- "transactionNumber": "string"
}