ERC20

Params retrieves the erc20 module params

get
Responses
200
A successful response.
application/json
get
GET /cosmos/evm/erc20/v1/params HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Accept: */*
{
  "params": {
    "enable_erc20": true,
    "native_precompiles": [
      "text"
    ],
    "dynamic_precompiles": [
      "text"
    ]
  }
}

TokenPairs retrieves registered token pairs

get
Query parameters
pagination.keyanyOptional

key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.

pagination.offsetanyOptional

offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.

pagination.limitanyOptional

limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.

pagination.count_totalanyOptional

count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.

pagination.reverseanyOptional

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses
200
A successful response.
application/json
get
GET /cosmos/evm/erc20/v1/token_pairs HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Accept: */*
{
  "token_pairs": [
    {
      "erc20_address": "text",
      "denom": "text",
      "enabled": true,
      "contract_owner": "OWNER_UNSPECIFIED"
    }
  ],
  "pagination": {
    "next_key": "Ynl0ZXM=",
    "total": "text"
  }
}

TokenPair retrieves a registered token pair

get
Path parameters
tokenanyRequired

token identifier can be either the hex contract address of the ERC20 or the Cosmos base denomination

Responses
200
A successful response.
application/json
get
GET /cosmos/evm/erc20/v1/token_pairs/{token} HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Accept: */*
{
  "token_pair": {
    "erc20_address": "text",
    "denom": "text",
    "enabled": true,
    "contract_owner": "OWNER_UNSPECIFIED"
  }
}

Last updated

Was this helpful?