@bronlabs/intents-sdk
Version:
SDK for Intents DeFi smart contracts
21 lines (20 loc) • 935 B
TypeScript
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;
}