Stas Token

You can access the STAS protocol endpoints to handle the end-to-end life cycle of your digital assets here.

Create a Contract

Create a contract and return the transaction. The contract still needs to be broadcast using the submit endpoint.

An Api Key must be passed in the header of the request see Authentication

HTTP Request
POST https://platform.taal.com/token-studio/api/v1/token/stas/create
cURL
curl --location --request POST \
  "https://platform.taal.com/token-studio/api/v1/token/stas/create" \
  --header "Apikey: ## VALID_API_KEY ##" \
  --header "Content-Type: application/json" \
  --data "{"isFungible":true,"name":"string","protocolId":"string","symbol":"string","decimals":18,"initialTokenSupply":1,"totalTokenSupply":1,"contractUtxos":[{"txid":"string","vout":0,"scriptPubKey":"string","satoshis":0}],"fundingUtxos":[{"txid":"string","vout":0,"scriptPubKey":"string","satoshis":0}],"issuerPublicKey":"string","fundingPublicKey":"string","description":"string","imageUrl":"string","satsPerToken":1,"properties":{"meta":{"schemaId":"string"}}}"
The JSON structure for the above post request:
{
  "isFungible": true,
  "name": "string",
  "protocolId": "string",
  "symbol": "string",
  "decimals": 18,
  "initialTokenSupply": 1,
  "totalTokenSupply": 1,
  "contractUtxos": [
    {
      "txid": "string",
      "vout": 0,
      "scriptPubKey": "string",
      "satoshis": 0
    }
  ],
  "fundingUtxos": [
    {
      "txid": "string",
      "vout": 0,
      "scriptPubKey": "string",
      "satoshis": 0
    }
  ],
  "issuerPublicKey": "string",
  "fundingPublicKey": "string",
  "description": "string",
  "imageUrl": "string",
  "satsPerToken": 1,
  "properties": {
    "meta": {
      "schemaId": "string"
    }
  }
}
Response JSON structure
{
  "success": true,
  "data": {
    "hex": "string",
    "json": {
      "hash": "string",
      "version": 0,
      "inputs": [
        {
          "prevTxId": "string",
          "outputIndex": 0,
          "sequenceNumber": 0,
          "script": "string",
          "scriptString": "string",
          "output": {
            "satoshis": 0,
            "script": "string"
          }
        }
      ],
      "outputs": [
        {
          "satoshis": 0,
          "script": "string"
        }
      ],
      "nLockTime": 0
    },
    "signingInfo": [
      {
        "inputIndex": 0,
        "publicKey": {
          "x": "string",
          "y": "string",
          "compressed": true
        },
        "sighash": 0,
        "script": "string",
        "satoshis": 0,
        "type": "string"
      }
    ]
  }
}

Issue a contract

Issue a contract and return the transaction. The issuance still needs to be broadcast using the submit endpoint.

An Api Key must be passed in the header of the request see Authentication

HTTP Request
POST https://platform.taal.com/token-studio/api/v1/token/stas/issue
cURL
curl --location --request POST \
  "https://platform.taal.com/token-studio/api/v1/token/stas/issue" \
 --header "Apikey: ## VALID_API_KEY ##" \
 --header "Content-Type: application/json" \
 --data "{\"issuerPublicKey\":\"string\",\"fundingPublicKey\":\"string\",\"contractUtxo\":{},\"fundingUtxo\":{},\"issueInfo\":[{\"addr\":\"stringstringstringstringst\",\"tokens\":1,\"data\":\"string\"}],\"isFungible\":true,\"symbol\":\"string\"}"
The JSON structure for the above post request:
{
  "issuerPublicKey": "string",
  "fundingPublicKey": "string",
  "contractUtxo": {},
  "fundingUtxo": {},
  "issueInfo": [
    {
      "addr": "stringstringstringstringst",
      "tokens": 1,
      "data": "string"
    }
  ],
  "isFungible": true,
  "symbol": "string"
}    
Response JSON structure
{
  "success": true,
  "data": {
    "hex": "string",
    "json": {
      "hash": "string",
      "version": 0,
      "inputs": [
        {
          "prevTxId": "string",
          "outputIndex": 0,
          "sequenceNumber": 0,
          "script": "string",
          "scriptString": "string",
          "output": {
            "satoshis": 0,
            "script": "string"
          }
        }
      ],
      "outputs": [
        {
          "satoshis": 0,
          "script": "string"
        }
      ],
      "nLockTime": 0
    },
    "signingInfo": [
      {
        "inputIndex": 0,
        "publicKey": {
          "x": "string",
          "y": "string",
          "compressed": true
        },
        "sighash": 0,
        "script": "string",
        "satoshis": 0,
        "type": "string"
      }
    ]
  }
}

Submit a transaction

Submits a previously created transaction.

An Api Key must be passed in the header of the request see Authentication

HTTP Request
POST https://platform.taal.com/token-studio/api/v1/token/stas/submit
cURL
curl --location --request POST \
  "https://platform.taal.com/token-studio/api/v1/token/stas/submit" \
 --header "Apikey: ## VALID_API_KEY ##" \
 --header "Content-Type: application/json" \
 --data "{\"tx\":\"string\",\"network\":\"mainnet\"}"
The JSON structure for the above post request:
{
  "tx": "string",
  "network": "mainnet"
}    
Response JSON structure
{
  "success": true,
  "data": {
    "txid": "string"
  }
}

Last updated