On this page

latest contributor to this doc

Last Edit:

@smk762

Enable ERC20

API-v2enable_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.

ParameterTypeRequiredDefaultDescription
tickerstring-Ticker of the ERC20-like token you want to enable.
activation_paramsobject-A standard TokenActivationParams object.

ParameterTypeDescription
balancesobjectAn object containing balance information for activated addresses.
platform_coinstringThe platform coin for this token (e.g., "ETH" for ERC20 tokens).
required_confirmationsnumberThe number of confirmations required for transactions.
token_contract_addressstringThe contract address of the activated token.

Enable ERC20

POST
enable_erc20
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "enable_erc20",
  "mmrpc": "2.0",
  "params": {
    "ticker": "BAT-ERC20",
    "activation_params": {
      "required_confirmations": 3
    }
  }
}