Testing
You can mint tokens for testing purposes by making a request to the _testing endpoint.
HTTP Method
Resource
Description
Some tokens might require you to have minter privileges.
Mint Tokens
POST
http://localhost:5001/api/v1/_testing/tokens/0x782C...8209/mint
The request will return the hash of the minting transaction.
Path Parameters
Name
Type
Description
version
string
Version of the API
token_address
string
Address of a token
Request Body
Name
Type
Description
to
string
An address for which to deposit the minted tokens
value
string
Amount of tokens to be minted
contract_method
string
Name of the minting method in the smart contract, must be set to either "mint", "mintFor", or "increaseSupply".
{
"transaction_hash": "0x90896386c5b218d772c05586bde5c37c9dc90db5de660bba5bd897705c976edb"
}
Example request:
{
"to": "0x2c4b0Bdac486d492E3cD701F4cA87e480AE4C685",
"value": "1000",
"contract_method": "mintFor"
}
Last updated
Was this helpful?