POST
/
erc20
/
deploy
curl --request POST \
  --url https://lab.trustos.telefonicatech.com/track/v2/erc20/deploy \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "MyToken",
  "symbol": "MTK",
  "burnAddress": "0x000000000000000000000000000000000000dEaD",
  "totalSupply": 2000
}'
{
  "statusCode": 201,
  "message": "Token deployed sucessfully",
  "data": {
    "type": "ERC20",
    "deployer": "did:user:<id>",
    "data": {
      "contractAddress": "0xebF01265FcE347EE2161f37e49416d947C7a9590",
      "name": "MyToken",
      "symbol": "MTK",
      "burnAddress": "0xabcdef",
      "networkId": 10004
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

networkId
number
required

Network identifier where the token contract will be deployed.

Example:

10004

Body

application/json

Data needed for the deployment.

The body is of type object.

Response

201
application/json

Successful token deployment.

The response is of type object.