Snag Docs logo

Get contracts

GEThttps://admin.snagsolutions.io/api/contracts

Get contracts

Loading code example
Loading code example

Authorizations

apiKeyAuthstringheaderrequired

API key passed in the header.

Query Parameters

searchstring
organizationIdstring<uuid>required
websiteIdstring<uuid>required
cursorstring
includeAbibooleandefault: true
Default: true
idstring<uuid>
limitintegerdefault: 10

Number of contracts to return

Required range: x >= 1, x <= 1000
Default: 10
startingAfterstring<uuid>

Pagination cursor to start after a specific contract ID

Response

200application/json

200

dataarray<object>required
data.idstring<uuid>required

Unique identifier for the contract

data.namestringrequired

Name of the contract

Length: <= 40
data.addressstringrequired

Contract address matching the required format

Pattern: ^0x[a-fA-F0-9]{40}$
data.chainIdinteger<int64>required

ID of the blockchain chain

data.abiany

Application Binary Interface of the contract

data.type"erc20" | "erc721" | "erc1155" | "custom"required

Type of the contract

Allowed values: "erc20" | "erc721" | "erc1155" | "custom"
data.organizationIdstring<uuid>required

Unique identifier for the organization

data.iconUrlstring<uri>

Optional icon image for the contract; used as the reward token icon

hasNextPagebooleanrequired
Get contracts — Snag Docs