LogoLogo
  • Wallet Dev Kit by Tether
  • Blockchains
    • Bitcoin
    • Ethereum and ERC20
  • Components
    • Wallet seed
    • Wallet store
    • Wallet indexer
    • Wallet test-tools
      • Bitcoin
      • Ethereum
  • Guides
    • Getting Started
    • Integrating new assets
  • Examples
    • Seashell Node
    • Seashell Bare
    • AI Agent Demo
Powered by GitBook
On this page
  • Features:
  • JSON-RPC
  • WebSocket:
  • Backends:
  • Ankr
  • Hardhat
  • Setup and Run
  • Clone the wallet indexer repo
  • Install dependencies and copy config
  • Run
Export as PDF
  1. Components

Wallet indexer

PreviousWallet storeNextWallet test-tools

Last updated 6 months ago

indexer service for various assets with JSON-RPC and Websocket api

Features:

JSON-RPC

getTransactionsByAddress: Get ETH transactions by address.

WebSocket:

subscribeToAccount: Websocket events for new ERC20 token and ETH transfers for an address.

Backends:

Ankr

We provide a proxy for using as your data provider. Using the Ankr proxy allows your to easily access ETH mainnet or testnets

Hardhat

Using the the proxy, you're able run an indexer on your local hardhat instance. See the repo to setup your local instance.

Setup and Run

Clone the wallet indexer repo

git clone [email protected]:tetherto/lib-wallet-indexer.git
cd lib-wallet-indexer

Install dependencies and copy config

npm install
cp ./config.json.example ./config.json 

Run

For running with hardhat backend:

npm run start-hardhat

For running against ankr:

npm run start-ankr
Ankr
Hardhat
wallet-test-tools