メインコンテンツへスキップ
POST
/
rpc
/
Indexer
/
AddWebhookListener
AddWebhookListener
curl --request POST \
  --url https://amoy-indexer.sequence.app/rpc/Indexer/AddWebhookListener \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "filters": {
    "events": [
      "<string>"
    ],
    "contractAddresses": [
      "<string>"
    ],
    "accounts": [
      "<string>"
    ],
    "tokenIDs": [
      "<string>"
    ]
  },
  "projectId": 123
}
'
{
  "status": true,
  "listener": {
    "id": 123,
    "projectID": 123,
    "url": "<string>",
    "filters": {
      "events": [
        "<string>"
      ],
      "contractAddresses": [
        "<string>"
      ],
      "accounts": [
        "<string>"
      ],
      "tokenIDs": [
        "<string>"
      ]
    },
    "name": "<string>",
    "updatedAt": "<string>",
    "active": true
  }
}

Authorizations

Authorization
string
header
required

Secret JWT token for authenticating requests obtained from Sequence Builder - should not be exposed publicly.

Body

application/json
url
string
filters
object
projectId
number

Response

OK

status
boolean
listener
object