UNPKG

@cryptoscan/orca-sdk

Version:

The fastest and easiest way to trade on Orca.

13 lines (12 loc) 618 B
import { TransferParams } from './types/TransferParams.js'; import { BuyParams } from "./types/BuyParams.js"; import { OrcaApiParams } from "./types/OrcaApiParams.js"; import { SellParams } from "./types/SellParams.js"; export declare class OrcaApi { protected readonly params: OrcaApiParams; constructor(params?: Partial<OrcaApiParams>); buy(_params: BuyParams): Promise<string>; sell(_params: SellParams): Promise<string>; transfer(_params: TransferParams): Promise<string>; listenTransactions(address: string, onTransaction: (transaction: Record<string, unknown>) => void): Promise<void>; }