Giter Club home page Giter Club logo

tezos_api_noobs's Introduction

Tezos API Noobs

A collection of community scripts to access public Tezos API and collect data from it.

  • sudo apt-get install git
  • git clone https://github.com/hclivess/tezos_api_noobs
  • sudo apt-get install Python3.9
  • sudo apt install python3-pip
  • sudo Python3.9 -m pip install -r requirements.txt
  • sudo Python3.9 [filename].py

All .json files are just structured examples of individual operations for easy navigation in element identification.

API data structure

There are two types of data structures in this API:

list

  • introduced with []
  • example: ["hello", 100, 500, "world"]

we access list values with index numbers:

  • list[0] returns "hello"
  • list[1] returns 100
  • list[2] returns 500
  • list[3] returns "world"

dictionary

  • introduced with {}
  • example: {"operation": "sell", "name": "john", "age": 50}

we access dictionary values with keys

  • dictionary["operation"] returns "sell"
  • dictionary["name"] returns "john"
  • dictionary["age"] returns 50

combined data structures

What API usually returns are combined and nested data structures, simplified examples:

  • [{transactions: ["{"name": "transaction1", "value": 50}, {"name": "transaction2", "value": 50}}]

To see how this is done in practice, open individual Python files in this directory. Examples returned for each of this files are stored in the corresponding json files. To format a json file to make it more readable, try a service like curiousconcept url formatter.

tezos_api_noobs's People

Contributors

hclivess avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.