Skip to content

Backend for Sqwid, an NFT marketplace running on the Reef chain that features per-item customizable royalties.

License

Notifications You must be signed in to change notification settings

z26zheng/sqwid-backend

 
 

Repository files navigation

Sqwid backend

example .env file

FIREBASE_PROJECT_ID=
FIREBASE_PRIVATE_KEY=
FIREBASE_CLIENT_EMAIL=
JWT_SECRET=
NFT_STORAGE_API_KEY=
COLLECTIBLE_CONTRACT_ADDRESS=0x192A6B3AA5A860F110A2479C32C29f790b21163b
MARKETPLACE_CONTRACT_ADDRESS=0xccc5309F6E92956970000d385D817438bbF7CeA9
UTILITY_CONTRACT_ADDRESS=0xc857bb5C1D062c465a1B3Cf8af19635cC3B8e1Bc
RPC_URL=wss://rpc-testnet.reefscan.com/ws

API docs (not up to date)

Nonce

GET /api/nonce

Auth

POST /api/auth

BODY:

{
    address: '',
    signature: ''
}

Create

Collection

POST /api/create/collection

HEADERS

Authorization: Bearer <jwt>

BODY

{
    name: '',
    description: '',
    fileData: [] // the image
}

Collectible

POST /api/create/collectible

HEADERS

Authorization: Bearer <jwt>

BODY

{
    name: '',
    description: '',
    fileData: [] // the media (image / video / audio)
}

Get

Collections

By owner
GET /api/get/collections/owner/:address
By name (returns all collections whose name starts with the given string)
GET /api/get/collections/name/:name
By ID
GET /api/get/collections/id/:id

About

Backend for Sqwid, an NFT marketplace running on the Reef chain that features per-item customizable royalties.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.8%
  • Shell 0.2%