UNPKG

satsterminal-sdk

Version:

A TypeScript SDK for interacting with the SatsTerminal ecosystem.

19 lines (18 loc) 1.31 kB
import { SatsTerminalConfig, QuoteParams, QuoteResponse, GetPSBTParams, PSBTResponse, ConfirmPSBTParams, ConfirmPSBTResponse, SearchParams, SearchResponse, PopularTokensParams, PopularTokensResponse, SignInParams, SignInResponse, BindResponse, BindParams, PointsResponse, PointsParams, SwapV2QuoteParams, SwapV2QuoteResponse, SwapV2PSBTParams, SwapV2PSBTResponse, SwapV2SubmitParams, SwapV2SubmitResponse } from './types'; export declare class SatsTerminal { private readonly apiKey; private readonly baseUrl; constructor(config: SatsTerminalConfig); private request; search(params: SearchParams): Promise<SearchResponse>; popularTokens(params: PopularTokensParams): Promise<PopularTokensResponse>; fetchQuote(params: QuoteParams): Promise<QuoteResponse>; getPSBT(params: GetPSBTParams): Promise<PSBTResponse>; confirmPSBT(params: ConfirmPSBTParams): Promise<ConfirmPSBTResponse>; signIn(params: SignInParams): Promise<SignInResponse>; bind(params: BindParams): Promise<BindResponse>; points(params: PointsParams): Promise<PointsResponse>; swapQuote(params: SwapV2QuoteParams): Promise<SwapV2QuoteResponse>; swapPSBT(params: SwapV2PSBTParams): Promise<SwapV2PSBTResponse>; swapSubmit(params: SwapV2SubmitParams): Promise<SwapV2SubmitResponse>; }