Skip to content

dbpunk-labs/db3_vercel_query

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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