enable_erc20
The enable_erc20 method allows you to activate additional ERC20 like tokens of a EVM type platform coin. Before using this method, you first need to use the enable_eth_with_tokens method.
| Parameter* = required | Type | Description |
|---|---|---|
| ticker* | string | Ticker of the ERC20 like token coin. |
| activation_params.required_confirmations | integerdefault: value in the coins file if not set | Optional. Confirmations to wait for steps in swap. |
POST
enable_erc20{
"method": "enable_erc20",
"mmrpc": "2.0",
"params": {
"activation_params": {
"required_confirmations": 3
},
"ticker": "BAT-ERC20"
},
"userpass": "RPC_UserP@SSW0RD"
}
Response (Success)
SUCCESS
{
"id": null,
"mmrpc": "2.0",
"result": {
"balances": {
"0x9A8ED9876E0D06DF80f16e7d1ad6271055C0E375": {
"spendable": "0",
"unspendable": "0"
}
},
"platform_coin": "ETH",
"required_confirmations": 3,
"token_contract_address": "0x0d8775f648430679a709e98d2b0cb6250d2887ef"
}
}
| Parameter* = required | Type | Description |
|---|---|---|
| PlatformCoinIsNotActivated | string | Optional. The platform coin is not activated |
| TokenConfigIsNotFound | string | Optional. Token config is not found in coins file |
| TokenIsAlreadyActivated | string | Optional. The token is already activated |