Appearance
Mint an ERC721 token
Mint ERC721 token on layer 2.
Parameters
*contract_address string
Contract address of token (ERC20 or ERC721)
*stark_key string
A unique key that identifies the user in the off-chain state
*amount string
Amount of tokens mint on layer 2
jsx
POST /v1/mints
cURL
Example
sh
curl -v https://api-dev.reddio.com/v1/mints -H 'content-type: application/json' -d '{ "contract_address":"0x4240e8b8c0b6e6464a13f555f6395bbfe1c4bdf1", "stark_key":"0x761f1709a72a7e1d9a503faf2a1067686f315acdc825a804e1281fbd39accda", "amount":"10"}' -H 'x-api-key: rk-xxxxxx-4326-4b58-ae69-xxxxxxxx'
Example payload
json
{
"contract_address": "0x4240e8b8c0b6e6464a13f555f6395bbfe1c4bdf1",
"stark_key": "0x761f1709a72a7e1d9a503faf2a1067686f315acdc825a804e1281fbd39accda",
"amount": "10"
}
Example response
jsx
{
"status": "OK",
"error": "",
"data": {
"sequence_ids": [11,12]
}
}