UNPKG

@bronlabs/intents-sdk

Version:
24 lines (23 loc) 1.1 kB
import { Network, TransactionData } from './index.js'; export declare class CantonNetwork implements Network { private readonly scanApiUrl; private readonly validatorApiUrl; private readonly ledgerApiUrl?; private readonly authUrl; private readonly daUtilitiesApiUrl; private readonly nativeAssetDecimals; readonly retryDelay: number; private readonly clientId?; private readonly clientSecret?; private readonly senderPartyId?; private readonly proxyAgent?; private accessToken?; private accessTokenExpiresAt; constructor(validatorApiUrl: string, ledgerApiUrl?: string, scanApiUrl?: string, authUrl?: string, clientId?: string, clientSecret?: string, senderPartyId?: string, daUtilitiesApiUrl?: string); getDecimals(tokenAddress: string): Promise<number>; getTxData(txHash: string, tokenAddress: string): Promise<TransactionData | undefined>; transfer(privateKey: string, to: string, value: bigint, tokenAddress: string): Promise<string>; private buildIdentifierFilter; private getAccessToken; private nodeRequest; }