Skip to main content
POST
/
api
/
v1
/
realms
/
{realmId}
/
web3
/
activations
Create an activation
curl --request POST \
  --url https://api.drip.re/api/v1/realms/{realmId}/web3/activations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "activationType": "nft",
  "contractAddress": "<string>",
  "chain": "ethereum",
  "configs": [
    {
      "configType": "generator",
      "settings": {
        "intervalHours": 123,
        "dict": {},
        "listingPenalty": "<string>",
        "listingPenaltyPrice": 123,
        "listingPenaltyChain": "<string>"
      },
      "pointsConfig": [
        {
          "realmPointId": "<string>",
          "baseYield": 123,
          "maxBalance": 123,
          "roundType": "<string>",
          "isStackable": true,
          "tokenRatio": 123
        }
      ]
    }
  ]
}'
{
  "id": "<string>",
  "activationType": "nft",
  "contractAddress": "<string>",
  "chain": "ethereum",
  "collectionKey": "<string>",
  "displayName": "<string>",
  "configs": [
    {
      "configType": "generator",
      "id": "<string>",
      "settings": {
        "intervalHours": 123,
        "lastRun": "2023-11-07T05:31:56Z",
        "dict": {},
        "listingPenalty": "<string>",
        "listingPenaltyPrice": 123,
        "listingPenaltyChain": "<string>"
      },
      "pointsConfig": [
        {
          "id": "<string>",
          "realmWeb3ActivationConfigId": "<string>",
          "realmPointId": "<string>",
          "baseYield": 123,
          "maxBalance": 123,
          "roundType": "<string>",
          "isStackable": true,
          "tokenRatio": 123,
          "createdAt": "2023-11-07T05:31:56Z",
          "updatedAt": "2023-11-07T05:31:56Z"
        }
      ],
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API Key

Path Parameters

realmId
string
required

Body

application/json
activationType
enum<string>
required
Available options:
nft,
erc1155,
token
contractAddress
string
required
chain
enum<string>
default:ethereum
required
Available options:
ethereum,
polygon,
arbitrum,
optimism,
base,
zksync,
starknet,
scroll,
polygonZkEVM,
arbitrumNova,
avalanche,
gnosis,
opbnb,
metis,
astar,
linea,
mantle,
berachain,
flow,
crossfi,
soneium,
worldchain,
rootstock,
shape,
unichain,
apechain,
geist,
lens,
abstract,
lumia,
ink,
zetachain,
blast,
sonic,
zora,
settlus,
solana,
bsc
configs
any[] | null

Response

Default Response

The response is of type any.