Skip to main content
POST
/
erc20
/
deploy
Deploy an ERC20 Token.
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 successfully",
  "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.

name
string
required

Token name.

Example:

"MyToken"

symbol
string
required

Token symbol. Can be used later as an identifier with the networkId.

Example:

"MTK"

burnAddress
string

Address where the tokens will be sent to be burned.

Example:

"0x000000000000000000000000000000000000dEaD"

totalSupply
number

Total supply of tokens. Tokens can also be minted later. The tokens specified in this property are assigned to the user who calls this endpoint.

Example:

2000

Response

Successful token deployment.

statusCode
number

Request status code.

Example:

201

message
string

Message returned by the request.

Example:

"Token deployed successfully"

data
object

Data returned by the request.

I