subscan-explorer / subscan-essentials

Polkadot Substrate Explorer Subscan

Home Page:https://www.subscan.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

writing custom plugins to indexed more data

andropixels opened this issue · comments

Can we save accounts , transfers to the database with plugins ?
if yes how should i approach to write a plugin for saving accounts and transfers from the substrate chain to database ?

@freehere107 thanks for the reply,
Yes I checked that demo, but it returns null data.
The request I made for accounts:
curl -X POST 'http://127.0.0.1:4399/api/plugin/balance/accounts' -- header Content-Type: application/json"
--data-raw '{
"row": 10, "page": 1
}

The responce I got back and it is giving me null list
{"code":0,"message":"success","ttl":1,"data": {"count":0,"list":[]}]

Why is that do I have to make any changes?
Please suggest.