Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 910 Bytes

README.md

File metadata and controls

39 lines (27 loc) · 910 Bytes

Use vercel function and db3 to build a backend query api

How to Use

curl https://db3-vercel-query.vercel.app/api/query?db=0x1efa81a1e1d69515e5d6667554af8b16536e6505&col=t2&query=/*

there are three parameters

  • db the db3 network database address
  • col the collection name
  • query the query str, you can get more example from doc

One-Click Deploy

Deploy with Vercel

Clone and Local Test

git clone https://github.com/dbpunk-labs/db3_vercel_query.git

Install the Vercel CLI:

npm i -g vercel

Install the dependencies

yarn

Then run the app at the root of the repository:

npx vercel dev