Etheremon Adventure ERC-721 Integration

Etheremon
Etheremon
Sep 8, 2018 · 1 min read

Etheremon has three sets of token:

  1. Etheremon Currency: EMONT
    Standard: ERC-20
    Address: https://etherscan.io/address/0x95daaab98046846bf4b2853e23cba236fa394a31
  2. Etheremon monster: EMONA
    Standard: ERC-721 with some modification
    Address: https://etherscan.io/address/0x5d00d312e171be5342067c09bae883f9bcb2003b
    Integration docs: https://medium.com/etheremon/etheremon-erc-721-integration-guide-a03b9d97f97e
  3. Etheremon Adventure item: EMOND
    Standard: ERC-721
    Address: https://etherscan.io/address/0xbfde6246df72d3ca86419628cac46a9d2b60393c

In this blog, we will share some important points to help you integrate EMOND to your system.

EMOND contract contains all required functions and properties for the ERC-721 standard and we provide an API for 3rd parties to query EMOND token metadata.

URL: https://www.etheremon.com/api/adventure/get_item_data
Method: GET
Params:
* token_ids: a string of token ids (separated by ",")
Return:
* Http Status = 200 (other than this status is invalid)
* Json data in body with format
{"result": ResultCode, "data": "xxx"}
* ResultCode:
SUCCESS = 0
ERROR_SERVER = 1
ERROR_PARAMS = 2
* data is a dictionary with token_id is a key, and the value is an object:
uint token_id
string owner
uint32 item_class
uint32 item_value
string name
string image
string desc

item_class:

  • 1 -> 108: adventure sites
  • 200: level stone
  • 201: EXP stone
  • 300, 301, 302: Health Shards
  • 310, 311, 312: Primary Attack Shards
  • 320, 321, 322: Primary Defense Shards
  • 330, 331, 332: Secondary Attack Shards
  • 340, 341, 342: Secondary Defense Shards
  • 350, 351, 352: Speed Shards

item_value:

  • for level stone: it is the number of level the stone can boost
  • for exp boost: it is the number of exp the stone can boost

Etheremon
Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade