Testing

You can mint tokens for testing purposes by making a request to the _testing endpoint.

HTTP Method

Resource

Description

POST

/api/<version>/_testing/tokens/<token_address>/mint

Mint tokens

Some tokens might require you to have minter privileges.

post
Mint Tokens

http://localhost:5001/api/v1/_testing/tokens/0x782C...8209/mint
The request will return the hash of the minting transaction.
Request
Response
Path Parameters
version
required
string
Version of the API
token_address
required
string
Address of a token
Body Parameters
to
required
string
An address for which to deposit the minted tokens
value
required
integer
Amount of tokens to be minted
contract_method
required
string
Name of the minting method in the smart contract, must be set to either "mint", "mintFor", or "increaseSupply".
200: OK
Successful transaction
{
"transaction_hash": "0x90896386c5b218d772c05586bde5c37c9dc90db5de660bba5bd897705c976edb"
}
400: Bad Request
The request failed

Example request:

{
"to": "0x2c4b0Bdac486d492E3cD701F4cA87e480AE4C685",
"value": 1000,
"contract_method": "mintFor"
}