UNPKG

@bronlabs/intents-sdk

Version:
21 lines (20 loc) 935 B
import { Network, TransactionData } from './index.js'; export declare class CantonNetwork implements Network { private readonly scanApiUrl; private readonly validatorApiUrl; private readonly authUrl; 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, scanApiUrl?: string, authUrl?: string, clientId?: string, clientSecret?: string, senderPartyId?: 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 getAccessToken; private nodeRequest; }