ERC-20 Tokens
Mint ERC-20 Tokens
POST
/
api
/
v1
/
erc20
/
mint
Authorization
Body
curl --location --request POST 'https://groupos.xyz/api/v1/erc20/mint' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data-raw '{
"chainId": 5,
"contractAddress": "0x67F4732266C7300cca593C814d46bee72e40659F",
"recipientAddress": "0xc517c83f417b73dA98647dad0FCB80af9f3b9531",
"amount": "420"
}'
{
"success": true,
"transactionHash": "0x58c789b7a59312ec0a659e165700db54af896d3e8b46e4aeecb33b32b88157c9",
"transactionUrl": "https://goerli.etherscan.io/tx/0xef737091d8c3451b42659688abd86b51516a6b43ee7dbdbda53c9005d86167db"
}
How to mint ERC-20 tokens
Once you have a ERC-20 Token smart contract, you can mint any number of tokens to any address.
Body
chainId
number
requiredThe id of the chain supporting the token. This cannot be changed after creation.
contractAddress
string
requiredThe token smart contract address to mint with.
recipientAddress
string
requiredThe address to mint an token to.
amount
string
requiredThe human-readable quantity of points to mint. Type string
is used to
natively support large numbers.
Response
success
boolean
Indicates whether the call was successful.
transactionHash
string
Transaction hash for the newly created token.
transactionUrl
string
Wraps transactionHash
with the appropriate network-specific URL for
convenience.
curl --location --request POST 'https://groupos.xyz/api/v1/erc20/mint' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data-raw '{
"chainId": 5,
"contractAddress": "0x67F4732266C7300cca593C814d46bee72e40659F",
"recipientAddress": "0xc517c83f417b73dA98647dad0FCB80af9f3b9531",
"amount": "420"
}'
{
"success": true,
"transactionHash": "0x58c789b7a59312ec0a659e165700db54af896d3e8b46e4aeecb33b32b88157c9",
"transactionUrl": "https://goerli.etherscan.io/tx/0xef737091d8c3451b42659688abd86b51516a6b43ee7dbdbda53c9005d86167db"
}