Token

Object schema

  • address: String- address of the deployed contract.
  • name: String - a human readable name for the contract.
  • symbol: String - the currency symbol of the contract.
  • totalSupply: Number - the total supply of shared value for the currency.
  • links: Array - an array of weblinks with description and link.
  • probability: Float - the truthness of this token information. 1.0 is the best.

Mapping

For some fields, there are multiple encodings available, which are nested as properties on the field. More information on those data types can be found here.

The following is the output of the Elasticsearch mapping for the Token type:

{
  "address": {
    "type": "text",
    "fields": {
      "raw": {
        "type": "keyword",
        "ignore_above": 256
      }
    }
  },
  "symbol": {
    "type": "keyword",
    "ignore_above": 256
  },
  "name": {
    "type": "text",
    "fields": {
      "raw": {
        "type": "keyword",
        "ignore_above": 256
      }
    }
  },
  "type": {
    "type": "keyword",
    "ignore_above": 256
  },
  "decimals": {
    "type": "long"
  },
  "totalSupply": {
    "properties": {
      "num": {
        "type": "long"
      },
      "raw": {
        "type": "keyword",
        "ignore_above": 256
      }
    }
  },
  "createdAt": {
    "type": "date",
    "format": "epoch_second"
  },
  "updatedAt": {
    "type": "date",
    "format": "epoch_second"
  },
  "links": {
    "type": "nested",
    "properties": {
      "description": {
        "type": "text",
        "fields": {
          "raw": {
            "type": "keyword",
            "ignore_above": 256
          }
        }
      },
      "link": {
        "type": "keyword"
      }
    }
  },
  "probability": {
    "type": "double"
  }
}