Torque TS SDK

@torque-labs/torque-ts-sdkDocs


Torque Client TypeScript SDK

The official Torque Client TypeScript SDK.

Enumerations

EnumerationDescription

The type of action that will be used to filter the addresses for a target.

Campaign journey progress status.

The rewards type of a campaign.

The API response success type.

Torque functions that require a wallet signature.

-

The operation type of an audience.

The target type of an audience.

Classes

ClassDescription

The TorqueAdminClient class is used to manage admin actions in the Torque API.

The TorqueAudienceClient class is used to manage and verify audiencess for the Torque API.

The TorqueRequestClient class is used to make requests to the Torque API. It provides methods for performing API requests and handling responses.

The official Torque Typescript SDK.

The TorqueUserClient class is used to authenticate a user with the Torque API. The user client allows publishers to fetch campaigns and offers that are savailable for the current user.

Interfaces

InterfaceDescription

Transaction result response

Type Aliases

Type aliasDescription

Action requirements input.

An action target for an audience.

Aggregation create input.

Aggregation and operator.

Audience data.

Audience creation input.

Audience metadata

Audience creation response.

Campaign data.

A user's campaign journey data.

Campaign leaderboard data.

Payload returned from the API as a sample payload for sign in.

Input login options for the API.

An array of the user's share links.

Raffle rewards data.

Full bounty step requirement type.

Generic response for an API request.

Generic error response for the API.

Generic success response for the API.

Share link data.

Telegram auth response.

A Torque user.

A user's journey data.

User Payout data.

Audiences are used to define the conditions under which a user can participate in a campaign.

Build audience request options.

Build audience response.

Generic response for an audience request.

Parameters for a bridge action.

Bridge action requirements.

Campaign analytics type retrieved from the API.

Campaign end input.

Aggregation query condition.

Conversion time type for analytics.

Parameters for a NFT mint action.

Nft mint action requirements.

Click action bounty step requirements.

Custom event bounty step requirements.

Drift bet action bounty step requirements.

Drift bet action bounty step requirements.

Form submission action bounty step requirements.

Kamino lend action bounty step requirements.

Marginfi lend action bounty step requirements.

Sign up action bounty step requirements.

NFT bid buy action bounty step requirements.

NFT collection trade action bounty step requirements.

Realms DAO vote action bounty step requirements.

Stake solana action bounty step requirements.

Swap action bounty step requirements.

Tensor bid action bounty step requirements.

Tensor buy action bounty step requirements.

Open position requirements input.

An open position target for an audience.

Aggregation query operator.

Aggregation or operator.

Parameters for a program interaction action.

Program interaction action requirements.

Publisher create input.

Publisher payout input.

-

Sign transaction function type

Staked sol requirements input.

A staked sol target for an audience.

Parameters for a swap action.

Swap action requirements.

The target of an audience.

Token holding requirements input.

A token holding target for an audience.

Options for the TorqueAdminClient.

Options for the TorqueAudienceClient.

Options for the TorqueRequestClient.

Options for the TorqueSDK.

Options for the TorqueUserClient.

On-chain transaction execute input.

On-chain transaction execute response.

On-chain transaction build input

Parameters for a vote action.

Vote action requirements.

Generic with signture type

Last updated