Powered by Stoplight
post

/eth/erc20/{token}/{wallet}/mint

Executes the ERC20 method “mint” on compatible contracts to generate an amount of tokens to the current wallet or given address

Authorization

apiKey - tangany-subscription
apiKey - tangany-client-id
apiKey - tangany-client-secret

Request Parameters

2 Path Parameters
3 Headers

Request Body

Fails if executed from a wallet whose address is not the ERC20 contract “minter”. Tokens are mined to the wallet’s address if the optional “to” parameter is omitted from the call.

Schema
object
$schema: http://json-schema.org/draft-04/schema#
amount
string

ERC20 token amount. Must not fall below the token’s decimals specification Examples: 1200, 1e-18 (min. possible amount for a 18 decimals token)

3 validations + required
to
string

A hexadecimal Ethereum address

4 validations

Responses

Server response for a submitted Ethereum transaction. Call /eth/transaction/{hash} to retrieve the mining status for the transaction

5 Headers
1 Example
Schema
object
$schema: http://json-schema.org/draft-04/schema#
hash
string

Ethereum transaction hash that represents a blockchain operation

4 validations + required

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
Path Params
2 path params not set
token
wallet
$$.env
3 variables not set
tangany-subscription
tangany-client-id
tangany-client-secret