curl --request POST \
--url https://api.example.com/token \
--header 'Content-Type: application/json' \
--data '
{
"name": "Decentri Token",
"decimals": 18,
"symbol": "DEC",
"totalSupply": 1000000
}
'{
"name": "ACME Token",
"symbol": "ACME",
"address": "0xc0ffee254729296a45a3885639AC7E10F9d54979",
"decimals": 18,
"isPaused": false,
"totalSupply": 123,
"createdAt": "2023-11-07T05:31:56Z"
}Create a new token with specified parameters.
curl --request POST \
--url https://api.example.com/token \
--header 'Content-Type: application/json' \
--data '
{
"name": "Decentri Token",
"decimals": 18,
"symbol": "DEC",
"totalSupply": 1000000
}
'{
"name": "ACME Token",
"symbol": "ACME",
"address": "0xc0ffee254729296a45a3885639AC7E10F9d54979",
"decimals": 18,
"isPaused": false,
"totalSupply": 123,
"createdAt": "2023-11-07T05:31:56Z"
}The name of the token
"Decentri Token"
The number of decimals places the token should have
0 <= x <= 1818
The symbol of the token
"DEC"
The total supply of the token
1000000
The token has been successfully created
The name of the token
"ACME Token"
The symbol of the token
"ACME"
The address of the token
"0xc0ffee254729296a45a3885639AC7E10F9d54979"
The number of decimals places the token should have
18
Whether the token is paused
false
The total supply of the token
The date the token was created