RAIRprotocol
  • 💎Welcome to RAIR
  • 💴Whitepaper (draft)
    • Start
      • History
      • Licensing
      • Codebase
      • Onboarding
      • Mechanics
        • Burn Model
        • Earn Model
      • Governance (DAORM)
  • ↔️Integrations
    • Core Technologies
      • Guides
        • Alchemy
        • GCP Cloud Storage
        • Web3Auth
    • Blockchains
  • 👩‍💻CODEBASE
    • RAIRsolidity
      • Soneium (Minato)
      • Core DAO
      • All Contract Addresses
      • Transfer functions
    • RAIRdapp
      • RAIRfrontend
        • Proxy Settings for Default Frontend
        • Frontend Variables Library
      • RAIRnode
        • Permissions and Access Controls
        • Backend Variables Library
      • RAIRsync
        • Integrating New EVMs
      • RAIRstream
      • RAIRinfra
    • RAIR API
      • Endpoints
        • Auth
          • Get challenge
          • Login
          • Logout
          • Me
          • Unlock
          • Stream
            • Out
        • Analytics
          • Csv
        • Contracts
          • FactoryList
          • Full
          • Import
          • My
          • Network
            • Products
              • Offers
        • Credits
          • Withdraw
        • Favorites
        • Files
          • ById
          • ByCategory
          • Categories
          • ForToken
          • Unlocks
          • List
          • Remove
          • Update
        • Nft
          • Network
            • Attributes
            • Files
            • Locks
            • Offers
            • Token
              • Pinning
          • PinningMultiple
          • Csv
            • Sample
        • Offers
          • /
        • Products
          • /
          • User
        • Resales
          • Create
          • Delete
          • Open
          • Purchase
          • Update
        • Search
          • All
        • Settings
          • Featured
          • Theme
          • AppLogo
        • Tokens
          • /
          • TokenNumbers
        • Transaction
        • Upload
          • File
          • Validate
        • Users
          • /
          • Export
          • List
          • Yoti verify
      • Specification
    • A Note on Documentation
  • ⚙️Installation and Testing
    • Getting Started
      • Welcome to New Web3 Devs!
      • RAIRlite (Single VM)
        • Windows WSL Installation
        • MVP Test Plan
        • https configuration
      • RAIRcloud (Cloud Enabled)
        • Cloud Test Plan
  • 🛟End User Guides
    • User Functionality
      • How to login
      • Buy your first NFT
      • Put items up for sale
      • Watch Content
    • Admin Functionality
      • Deploying NFT contracts
      • Managing Metadata
      • Managing Media
      • Managing Marketplace
      • Managing Users
      • Importing External Contracts
Powered by GitBook
On this page

Was this helpful?

  1. CODEBASE
  2. RAIR API
  3. Endpoints

Contracts

/api/contracts provides endpoints for gathering, outputting, and importing Smart Contract data to and from the database.

PreviousCsvNextFactoryList

Was this helpful?

👩‍💻

Get All Contracts (General)

get

List all available contracts. Uses pagination and filtering.

Query parameters
pageNumnumberOptional
itemsPerPagenumberOptional
titlestringOptional
userstringOptional
blockchainstringOptional
contractAddressstringOptional
diamondstringOptional
creationDatestringOptional
transactionHashstringOptional
lastSyncedBlockstringOptional
externalbooleanOptional
singleMetadatabooleanOptional
metadataURIstringOptional
importedBystringOptional
blockSyncbooleanOptional
blockViewbooleanOptional
Responses
200
OK
get
GET /api/contracts HTTP/1.1
Host: api.rair.market
Accept: */*
200

OK

No content

Get Contract by ID

get

Get a single contract using database ID.

Path parameters
idstringRequired
Responses
200
OK
get
GET /api/contracts/{id} HTTP/1.1
Host: api.rair.market
Accept: */*
200

OK

No content

  • GETGet All Contracts (General)
  • GETGet Contract by ID
  • PATCHUpdate Visibility

Update Visibility

patch

Update display and sync flags of contract. Super admin access required.

Path parameters
idstringRequired
Body
blockSyncbooleanRequiredExample: true
blockViewbooleanRequiredExample: true
Responses
200
OK
404
Contract not found
patch
PATCH /api/contracts/{id} HTTP/1.1
Host: api.rair.market
Content-Type: application/json
Accept: */*
Content-Length: 35

{
  "blockSync": true,
  "blockView": true
}

No content