Giter Site home page Giter Site logo

rig410 / aptos-indexer-processors Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aptos-labs/aptos-indexer-processors

0.0 0.0 0.0 9.41 MB

Set of core processors that index data on the Aptos blockchain

Home Page: https://aptos.dev/indexer/indexer-landing

Shell 0.28% JavaScript 0.54% Python 23.66% Rust 72.90% TypeScript 1.40% PLpgSQL 0.10% Dockerfile 0.17% Move 0.94%

aptos-indexer-processors's Introduction

Aptos Indexer Client Guide

This guide will get you started with creating an Aptos indexer with custom parsing. We have several endpoints that provided a streaming RPC of transaction data.

GRPC Data Stream Endpoints

Request

  • config.yaml
    • chain_id: ID of the chain used for validation purposes.
    • grpc_data_stream_endpoint: Replace with the grpc data stream endpoints for mainnet, devnet, testnet, or previewnet.
    • grpc_data_stream_api_key: Replace YOUR_TOKEN with your auth token.
    • db_connection_uri: The DB connection used to write the processed data
    • (optional) starting-version
      • If starting-version is set, the processor will begin indexing from transaction version = starting_version.
      • To auto restart the client in case of an error, you can cache the latest processed transaction version. In the example, the processor restarts from cached transaction version that is stored in a table, and if neither starting_version nor cached version are set, the processor defaults starting version to 0.

Response

  • The response is a stream of RawDatastreamResponse objects.
  • To learn more about the protos and the code generated from those protos see protos/ in aptos-core.

aptos-indexer-processors's People

Contributors

rtso avatar bowenyang007 avatar larry-aptos avatar banool avatar just-in-chang avatar capcap avatar xbtmatt avatar abbyxion avatar geekflyer avatar junkil-park avatar rustielin avatar dependabot[bot] avatar jillxuu avatar ibalajiarun avatar gregnazario avatar vusirikala avatar surgeharb avatar jjleng 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.