Type Alias: TorqueUserClientOptions

@torque-labs/torque-ts-sdkDocs


@torque-labs/torque-ts-sdk / TorqueUserClientOptions

Type Alias: TorqueUserClientOptions

type TorqueUserClientOptions: {
  apiUrl: string;
  appUrl: string;
  functionsUrl: string;
  network: Cluster;
  publisherHandle: string;
  rpc: string;
  signer: Adapter | Keypair;
  signTransaction: SignTransaction;
};

Options for the TorqueUserClient.

Type declaration

NameTypeDescription

apiUrl?

string

API URL for the client.

appUrl?

string

App URL for the client.

functionsUrl?

string

Functions URL for the client.

network

Cluster

The network for the client. Defaults to 'mainnet-beta'.

publisherHandle?

string

The publisher handle for the client. Defaults to 'torqueprotocol'.

rpc?

string

RPC URL for the client.

signer

Adapter | Keypair

The signer used to sign transactions.

signTransaction?

The function used to sign transactions. If provided, it will override the default signing method.

Defined in

src/classes/user.ts:26

Last updated