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.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
ticker | string | ✓ | - | Ticker of the ERC20-like token you want to enable. |
activation_params | object | ✗ | - | A standard TokenActivationParams object. |
Parameter | Type | Description |
---|---|---|
balances | object | An object containing balance information for activated addresses. |
platform_coin | string | The platform coin for this token (e.g., "ETH" for ERC20 tokens). |
required_confirmations | number | The number of confirmations required for transactions. |
token_contract_address | string | The 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
}
}
}