Integrating Metopia Star Badge

Off-chain Integration

The easiest way of integrating the Metopia credentials is by using our user metadata API. It returns all info about user credentials in JSON format.

Data can be fetched at: https://metopia.xyz/api/v2/profile/:owner

Response sample:

{
  "owner": "0x3cbAee4F65B64082FD3a5B0D78638Ee11A29A31A",
  "_base_star": true,
  "_blast_star": true,
  "_score": 411,
  "base_gas_spender": {
    "id": 69,
    "value": 6.989405047946995,
    "update": 1714295665,
    "rank": 0.01,
    "unit": "usd"
  },
  "blast_sepolia_user": {
    "id": 74,
    "value": 15,
    "update": 1714100580,
    "rank": 0.452
  },
  "swap_blast_swapper": {
    "id": 95,
    "value": 3.5091670000000006,
    "update": 1713972563,
    "rank": 0.75,
    "unit": "usd"
  },
  "transaction_times_on_optimism_": {
    "id": 61,
    "value": 16,
    "update": 1712051740,
    "rank": 0.01
  },
  "number_of_interacted_smart_contracts_on_optimism": {
    "id": 62,
    "value": 6,
    "update": 1712051739,
    "rank": 0.333
  },
  "aerodrome_swapper": {
    "id": 1,
    "value": 1,
    "update": 1712051735,
    "rank": 0.667
  },
  "compound_user": {
    "id": 6,
    "value": 4,
    "update": 1712051735,
    "rank": 0.01
  },
  "kyberswap_swapper": {
    "id": 25,
    "value": 2,
    "update": 1712051706,
    "rank": 0.01
  },
  "maverick_swapper": {
    "id": 26,
    "value": 1,
    "update": 1712051703,
    "rank": 0.01
  },
  "sushiswap_swapper": {
    "id": 27,
    "value": 1,
    "update": 1712051703,
    "rank": 0.01
  },
  "base_paint_art_minter": {
    "id": 29,
    "value": 1,
    "update": 1712051701,
    "rank": 0.01
  },
  "leetswap_swapper": {
    "id": 35,
    "value": 1,
    "update": 1712051690,
    "rank": 0.01
  },
  "highlight_minter_base": {
    "id": 40,
    "value": 1,
    "update": 1712051687,
    "rank": 0.01
  },
  "transaction_times_on_base_mainnet": {
    "id": 10,
    "value": 67,
    "update": 1712051134,
    "rank": 0.25
  },
  "number_of_interacted_smart_contracts_on_base_chain": {
    "id": 16,
    "value": 31,
    "update": 1712051132,
    "rank": 0.091
  },
  "trading_volume_on_base": {
    "id": 52,
    "value": 130,
    "update": 1710490647,
    "rank": 0.4,
    "unit": "usd"
  }
}

Last updated