Skip to main content

Torque Client TypeScript SDK

The official Torque Client TypeScript SDK.

API Index

Enumerations

EnumerationDescription
ActionTypeThe type of action that will be used to filter the addresses for a target.
ApiProgressStatusCampaign journey progress status.
ApiRewardTypeThe rewards type of a campaign.
ApiStatusThe API response success type.
ApiTxnTypesTorque functions that require a wallet signature.
OperationThe operation type of an audience.
TargetTypeThe target type of an audience.

Classes

ClassDescription
TorqueAdminClientThe TorqueAdminClient class is used to manage admin actions in the Torque API.
TorqueAudienceClientThe TorqueAudienceClient class is used to manage and verify audiencess for the Torque API.
TorqueRequestClientThe TorqueRequestClient class is used to make requests to the Torque API. It provides methods for performing API requests and handling responses.
TorqueSDKThe official Torque Typescript SDK.
TorqueUserClientThe 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.

Type Aliases

Type aliasDescription
ActionRequirementsInputAction requirements input.
ActionTargetAn action target for an audience.
AggreggationCreateInputAggregation create input.
AndOperatorAggregation and operator.
ApiAudienceAudience data.
ApiAudienceCreateInputAudience creation input.
ApiAudienceResponseAudience creation response.
ApiBountyStepsCampaign data with bounty steps.
ApiCampaignCampaign data.
ApiCampaignJourneyA user's campaign journey data.
ApiCampaignLeaderboardCampaign leaderboard data.
ApiIdentifyPayloadPayload returned from the API as a sample payload for sign in.
ApiInputLoginInput login options for the API.
ApiLinksAn array of the user's share links.
ApiRaffleRewardsRaffle rewards data.
ApiRequirementFull bounty step requirement type.
ApiResponseGeneric response for an API request.
ApiResponseErrorGeneric error response for the API.
ApiResponseSuccessGeneric success response for the API.
ApiShareShare link data.
ApiUserA Torque user.
ApiUserJourneyA user's journey data.
ApiUserPayoutUser Payout data.
ApiVerifiedUserA verified Torque user.
AudienceAudiences are used to define the conditions under which a user can participate in a campaign.
AudienceBuildBuild audience request options.
AudienceBuildResponseBuild audience response.
AudienceFunctionResponseGeneric response for an audience request.
BridgeActionParameters for a bridge action.
BridgeActionRequirementsBridge action requirements.
CampaignCreateInputCampaign create input.
CampaignEndInputCampaign end input.
ConditionAggregation query condition.
NftMintActionParameters for a NFT mint action.
NftMintActionRequirementsNft mint action requirements.
OpenPositionRequirementsInputOpen position requirements input.
OpenPositionTargetAn open position target for an audience.
OperatorAggregation query operator.
OrOperatorAggregation or operator.
ProgramInteractionActionParameters for a program interaction action.
ProgramInteractionActionRequirementsProgram interaction action requirements.
PublisherCreateInputPublisher create input.
PublisherPayoutInputPublisher payout input.
SafeToken-
SignTransactionSign transaction function type
StakedSolRequirementsInputStaked sol requirements input.
StakedSolTargetA staked sol target for an audience.
SwapActionParameters for a swap action.
SwapActionRequirementsSwap action requirements.
TargetThe target of an audience.
TokenHoldingRequirementsInputToken holding requirements input.
TokenHoldingTargetA token holding target for an audience.
TorqueAdminClientOptionsOptions for the TorqueAdminClient.
TorqueAudienceClientOptionsOptions for the TorqueAudienceClient.
TorqueRequestOptionsOptions for the TorqueRequestClient.
TorqueSDKOptionsOptions for the TorqueSDK.
TorqueUserClientOptionsOptions for the TorqueUserClient.
TxnExecuteOn-chain transaction execute input.
TxnExecuteResponseOn-chain transaction execute response.
TxnInputOn-chain transaction build input
VoteActionParameters for a vote action.
VoteActionRequirementsVote action requirements.
WithSignature-