Preface
Today, most wallets do not have their own infrastructure to show balances/information from the blockchain. They rely on a wallet kit api and NEAR RPC.
wallet kit api is a lightweight indexer that helps to find user’s FTs, NFTs, accounts by public key.
Suggestion
From January 2024 its support will be discontinued, which may lead to big problems in balance display for most projects and wallets. We at HERE Wallet use our own infrastructure based on
we process blocks directly from RPC, independent of Lake Indexer and any centralized solutions.
We propose to develop a compatible api with wallet kit and create a microservice that other projects can use out of the box to create their own independent infrastructure around the NEAR blockchain.
Development will include
-
Creating a python microservice to process near-zmq-indexer blocks and store the information in Postgres
-
Adding api support:
- account search by public key
- list of NFT/SBT on account
- FT list on account
- transaction history return
-
Setting up a node on Amazon AWS for scalable stable operation
-
Сompiling detailed documentation on local deployment and documentation
The project will be published open source and at least one working node will be supported.
In the future, under separate grants, it is possible to extend the API to include block streaming and BOS notifications
Difference from NEAR Blocks
The main difference is minimalism and simplicity. This is a backed api that can be deployed by any NEAR project. Also it is api compatibility with wallet kit and openness. No authorization will be needed to use it (only api restriction for ddos protection).
Budget
Developing kitwallet microservice on top of near-zmq-indexer: 15k USDT
Setup a infrastructure on AWS: 3k USDT
Preparing detailed documentation: 3k USDT
Monthly project and infrastructure support: ~5k (2.5-3k+2k team)
*throughput up to 100,000 requests per minute