Token
This will return all contracts created via the Token Studio Api.
HTTP Request
GET https://platform.taal.com/token-studio/api/v1/token/common/contracts
cURL
curl --location --request GET \
"https://platform.taal.com/token-studio/api/v1/token/common/contracts" \
--header "Apikey: ## VALID_API_KEY ##"
Response JSON structure
{
"success": true,
"data": [
{
"txId": "294cd1ebd5689fdee03509f92c32184c0f52f037d4046af250229b97e0c8f1aa",
"name": "string",
"description": "string",
"image": "string",
"tokenProtocol": "string",
"network": "string"
}
]
}
By providing a list of transaction id's, it will all contracts associated with these Id's.
HTTP Request
POST https://platform.taal.com/token-studio/api/v1/token/common/contracts
cURL
curl --location --request POST \
"https://platform.taal.com/token-studio/api/v1/token/common/contract" \
--header "Apikey: ## VALID_API_KEY ##" \
--header "Content-Type: application/json" \
--data "{\"txIds\" : [\"294cd1ebd5689fdee03509f92c32184c0f52f037d4046af250229b97e0c8f1aa\",\"91f68c2c598bc73812dd32d60ab67005eac498bef5f0c45b822b3c9468ba3258\" ] }"
The JSON structure for the above post request:
{
"txIds": [
"294cd1ebd5689fdee03509f92c32184c0f52f037d4046af250229b97e0c8f1aa",
"91f68c2c598bc73812dd32d60ab67005eac498bef5f0c45b822b3c9468ba3258"
]
}
Response JSON structure
{
"success": true,
"data": [
{
"txId": "294cd1ebd5689fdee03509f92c32184c0f52f037d4046af250229b97e0c8f1aa",
"name": "string",
"description": "string",
"image": "string",
"tokenProtocol": "string",
"network": "string"
},
{
"txId": "91f68c2c598bc73812dd32d60ab67005eac498bef5f0c45b822b3c9468ba3258",
"name": "string",
"description": "string",
"image": "string",
"tokenProtocol": "string",
"network": "string"
}
]
}
Returns a contract for a valid contract transaction id.
HTTP Request
GET https://platform.taal.com/token-studio/api/v1/token/common/contracts/<txId>
cURL
curl --location --request GET \
"https://platform.taal.com/token-studio/api/v1/token/common/contracts/294cd1ebd5689fdee03509f92c32184c0f52f037d4046af250229b97e0c8f1aa" \
--header "Apikey: ## VALID_API_KEY ##"
Response JSON structure
{
"success": true,
"data": {
"txId": "294cd1ebd5689fdee03509f92c32184c0f52f037d4046af250229b97e0c8f1aa",
"name": "string",
"description": "string",
"image": "string",
"tokenProtocol": "string",
"network": "string"
}
}
URL Parameters
Parameter | Description |
---|---|
txId | A valid contract transaction Id |
Returns contract details for a valid contract transaction id.
HTTP Request
GET https://platform.taal.com/token-studio/api/v1/token/common/contracts/details/<txId>
cURL
curl --location --request GET \
"https://platform.taal.com/token-studio/api/v1/token/common/contracts/details/294cd1ebd5689fdee03509f92c32184c0f52f037d4046af250229b97e0c8f1aa" \
--header "Apikey: ## VALID_API_KEY ##"
Response JSON structure
{
"success": true,
"data": {
"txId": "294cd1ebd5689fdee03509f92c32184c0f52f037d4046af250229b97e0c8f1aa",
"name": "string",
"description": "string",
"image": "string",
"symbol": "string",
"tokenProtocol": "string",
"network": "string",
"decimals": 0,
"intialSupply": 0,
"totalSupply": 0,
"satsPerToken": 0,
"genesisAddress": "string",
"properties": [
{
"key": "string",
"value": "string"
}
],
"insuance": "string"
}
}
URL Parameters
Parameter | Description |
---|---|
txId | A valid contract transaction Id |
Last modified 2mo ago