On this page

latest contributor to this doc

Last Edit:

@smk762

Enable Tendermint with Assets

API-v2enable_tendermint_with_assets

Use this method to activate Tendermint coins (COSMOS/IRIS/OSMOSIS) and IBC assets in a single command.

ParameterTypeRequiredDefaultDescription
nodesarray of objects-A list of CoinNode objects.
tickerstring-Ticker of the platform protocol coin. Current options: ATOM, IRIS, OSMOSIS (with more supported coins on the way).
tokens_paramsarray of objects-A list of standard TokensRequest objects.
activation_paramsobject-Only used with Metamask, Keplr, or WalletConnect activations. Defines the PrivKeyPolicy of the connection.
get_balancesbooleantrueIf false, coin and token balances will not be returned in the response, and the response will be returned more quickly.
mm2integer-Required if not set in coins file. Informs the Komodo DeFi Framework API whether or not the coin is expected to function. Accepted values are 0 or 1.
priv_key_policystringContextPrivKeyValue can be PrivKeyActivationPolicyEnum.
required_confirmationsinteger3When the platform coin is involved, the number of confirmations for the Komodo DeFi Framework API to wait during the transaction steps of an atomic swap.
requires_notarizationbooleanfalseIf true, coins protected by Komodo Platform's dPoW security will wait for a notarization before progressing to the next atomic swap transactions step.
tx_historybooleanfalseIf true the Komodo DeFi Framework API will preload transaction history as a background process. Must be set to true to use the my_tx_history method.

ParameterTypeDescription
addressstringAn address for the activated coin
balanceobjectOnly returned when get_balances is true. A standard BalanceInfos object.
current_blockintegerBlock height of the coin being activated
tickerstringTicker of the platform protocol coin, as input in the request.
tokens_balancesarray of objectsOnly returned when get_balances is true. A list of standard AddressInfo objects, one for each token.
tokens_tickersarrayOnly returned when get_balances is false. A list of each token which was activated.

Enable Tendermint Token with Assets (get_balances false)

POST
enable_tendermint_with_assets
{
  "method": "enable_tendermint_with_assets",
  "userpass": "RPC_UserP@SSW0RD",
  "mmrpc": "2.0",
  "params": {
    "ticker": "IRIS",
    "tokens_params": [
      {
        "ticker": "ATOM-IBC_IRIS"
      }
    ],
    "nodes": [
      {
        "url": "https://iris-rpc.alpha.komodo.earth/",
        "api_url": "https://iris-api.alpha.komodo.earth/",
        "grpc_url": "https://iris-grpc.alpha.komodo.earth/",
        "ws_url": "wss://iris-rpc.alpha.komodo.earth/websocket"
      },
      {
        "url": "https://rpc.irishub-1.irisnet.org",
        "komodo_proxy": false
      }
    ],
    "tx_history": true,
    "get_balances": false
  }
}

Enable Tendermint Token with Assets (get_balances true)

POST
enable_tendermint_with_assets
{
  "method": "enable_tendermint_with_assets",
  "userpass": "RPC_UserP@SSW0RD",
  "mmrpc": "2.0",
  "params": {
    "ticker": "IRIS",
    "tokens_params": [
      {
        "ticker": "ATOM-IBC_IRIS"
      }
    ],
    "nodes": [
      {
        "url": "https://iris-rpc.alpha.komodo.earth/",
        "api_url": "https://iris-api.alpha.komodo.earth/",
        "grpc_url": "https://iris-grpc.alpha.komodo.earth/",
        "ws_url": "wss://iris-rpc.alpha.komodo.earth/websocket"
      },
      {
        "url": "https://rpc.irishub-1.irisnet.org",
        "komodo_proxy": false
      }
    ],
    "get_balances": true
  }
}

POST
enable_tendermint_with_assets
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "enable_tendermint_with_assets",
  "mmrpc": "2.0",
  "params": {
    "ticker": "ATOM",
    "tx_history": true,
    "get_balances": true,
    "activation_params": {
      "priv_key_policy": {
        "type": "WalletConnect",
        "data": "3569914dd09a5cc4ac92dedab354f06ff5db17ef616233a8ba562cbea51269fd"
      }
    },
    "nodes": [
      {
        "url": "https://cosmos-rpc.alpha.komodo.earth/",
        "api_url": "https://cosmos-api.alpha.komodo.earth/",
        "grpc_url": "https://cosmos-grpc.alpha.komodo.earth/",
        "ws_url": "wss://cosmos-rpc.alpha.komodo.earth/websocket"
      },
      {
        "url": "https://cosmoshub.rpc.stakin-nodes.com/"
      }
    ],
    "tokens_params": []
  }
}