📖
Chainlife
  • Start Here
    • 👋Introduction
    • Quickstart Guide
      • Chapter 1: Find your token*
      • Chapter 2: Chainlife World
      • Chapter 3: World Interaction
      • Chapter 4: Open your token!
      • Chapter 5: Interact with token
      • Chapter 6: Shift token level
      • Chapter 7: Play a level
      • Optional: Set custom rule
      • Optional: Esoterra
    • The Artist
    • FAQ
  • 🖼️Chainlife Tokens
    • Examples
    • Token Info
    • Maturation
      • Seed Evolution - TECHNICAL
    • Token Legend
      • Rulesets
      • Palette Maturity
      • World View
      • Logic Gate
    • Interactivity
      • Starting Interactivity
      • Unlockable Interactivity
      • Trait-Specific Interactivity
      • ALL INTERACTIVITY
    • Room for Growth
  • 🌎Chainlife World
    • Chainlife Tokens Coexist
    • Utility?
    • World Interactivity
    • Community Traits
  • 🍀Chainlife Impact
    • Fighting Climate Change
  • 🖥️Chainlife Tech
    • ENTIRE SECTION IS WIP
    • Token Tech
    • App Frontend
    • Backend
      • Azure
      • Public API
  • 📰Media
    • 📽️Videos
  • Legal
    • Terms
    • Privacy
  • RECYCLE BIN
    • Goerli
Powered by GitBook
On this page
  1. Chainlife Tech
  2. Backend

Public API

An API is required to calculate the traits (from all on-chain data), render images as the tokens mature, and generate the html for live-views of the tokens. Additionally, because the tokens together interact in the Chainlife world, levels of all tokens must be tracked.

The API was coded by Drake and West Dev to Matto's specifications. It listens for events emitted from the smart contract and provides various endpoints for the project:

  • tokenURI: JSON data that marketplaces use to retrieve token data

  • tokens-level: an array of token objects with the specific information to calculate the Chainlife World view

  • generator: html and scripts to generate a playable Chainlife token

  • level: html and scripts to generate a playable Chainlfie level

  • esoterra: html and scripts to generate the experimental Chainlife Esoterra art

PreviousAzureNextVideos

Last updated 2 years ago

🖥️