Testing
You can mint tokens for testing purposes by making a request to the _testing endpoint.
HTTP Method | Resource | Description |
POST | Mint tokens |
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". |
Example request:
Last updated