Neynar · Schema

Hub OnChainEvent

Neynar Hub API schema for OnChainEvent

FarcasterSocialDecentralizedWeb3BlockchainSocial GraphCastsChannelsFeedsReactionsNotificationsWebhooksOnchain
View JSON Schema on GitHub

JSON Schema

hub-onchainevent.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://neynar.com/schemas/hub/OnChainEvent",
  "title": "Hub OnChainEvent",
  "description": "Neynar Hub API schema for OnChainEvent",
  "oneOf": [
    {
      "$ref": "#/components/schemas/OnChainEventSigner"
    },
    {
      "$ref": "#/components/schemas/OnChainEventSignerMigrated"
    },
    {
      "$ref": "#/components/schemas/OnChainEventIdRegister"
    },
    {
      "$ref": "#/components/schemas/OnChainEventStorageRent"
    }
  ],
  "discriminator": {
    "propertyName": "type",
    "mapping": {
      "EVENT_TYPE_SIGNER": "#/components/schemas/OnChainEventSigner",
      "EVENT_TYPE_SIGNER_MIGRATED": "#/components/schemas/OnChainEventSignerMigrated",
      "EVENT_TYPE_ID_REGISTER": "#/components/schemas/OnChainEventIdRegister",
      "EVENT_TYPE_STORAGE_RENT": "#/components/schemas/OnChainEventStorageRent"
    }
  }
}