Hierarchy

  • Campaigns

Constructors

Properties

options: ApiOptions

Methods

  • Parameters

    • advertiser: {
          description: string;
          externalLink: string;
          icon: string;
          name: string;
          twitter: undefined | string;
      }
      • description: string
      • externalLink: string
      • icon: string
      • name: string
      • twitter: undefined | string
    • did: DID

    Returns Promise<TileDocument<{
        description: string;
        external_link: string;
        icon: string;
        name: string;
        twitter: undefined | string;
    }>>

  • Parameters

    • campaign: {
          advertiser: string;
          chain: Chains;
          details: string;
          disableVerification: undefined | boolean;
          events: ({ description?: string | undefined; nativeLimit?: number | undefined; perCommit?: number | undefined; contractAddress?: string | undefined; contractEvent?: string | undefined; strategy: CampaignStrategies; rate: number; })[];
          id: undefined | string;
          owner: undefined | string;
          reward: { address?: string | undefined; name: string; type: RewardTypes; ticker: string; };
      }
      • advertiser: string
      • chain: Chains
      • details: string
      • disableVerification: undefined | boolean
      • events: ({ description?: string | undefined; nativeLimit?: number | undefined; perCommit?: number | undefined; contractAddress?: string | undefined; contractEvent?: string | undefined; strategy: CampaignStrategies; rate: number; })[]
      • id: undefined | string
      • owner: undefined | string
      • reward: { address?: string | undefined; name: string; type: RewardTypes; ticker: string; }
    • privateKey: string
    • Optional options: {
          bundlrUrl?: string;
          currency?: string;
      }
      • Optional bundlrUrl?: string
      • Optional currency?: string

    Returns Promise<any>

  • Parameters

    • campaignDetails: {
          description: undefined | string;
          destinationUrl: string;
          externalLink: undefined | string;
          image: undefined | string;
          name: string;
      }
      • description: undefined | string
      • destinationUrl: string
      • externalLink: undefined | string
      • image: undefined | string
      • name: string
    • did: DID

    Returns Promise<TileDocument<{
        description: undefined | string;
        destination_url: string;
        external_link: undefined | string;
        image: undefined | string;
        name: string;
    }>>

Generated using TypeDoc