Skip to content

Latest commit

 

History

History
89 lines (76 loc) · 1.23 KB

README.md

File metadata and controls

89 lines (76 loc) · 1.23 KB

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