Type Alias: TorqueRequestOptions

@torque-labs/torque-ts-sdkDocs


@torque-labs/torque-ts-sdk / TorqueRequestOptions

Type Alias: TorqueRequestOptions

type TorqueRequestOptions: {
  apiKey: string;
  apiUrl: string;
  appUrl: string;
  connection: Connection;
  functionsUrl: string;
  signer: Adapter | Keypair;
  signTransaction: SignTransaction;
};

Options for the TorqueRequestClient.

Type declaration

NameTypeDescription

apiKey?

string

The API key for the client.

apiUrl?

string

The API URL for the client.

appUrl?

string

The app URL for the client.

connection?

Connection

The connection for the client.

functionsUrl?

string

The functions 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/request.ts:20

Last updated