/** * IoTeX Node.js SDK * Comprehensive npm package for interacting with the IoTeX blockchain */ import { GrpcClient } from './client/grpc-client'; import { Account } from './account/account'; import { NodeDelegate } from './node/delegate'; import { Stake2 } from './stake/stake2'; import { Blockchain } from './blockchain/queries'; import { SDKConfig } from './types'; export declare class IoTeXSDK { private grpcClient; account: Account; node: NodeDelegate; stake: Stake2; blockchain: Blockchain; constructor(config?: SDKConfig); /** * Connect to the IoTeX blockchain */ connect(): Promise; /** * Disconnect from the IoTeX blockchain */ disconnect(): void; /** * Test connection by getting chain metadata */ isConnected(): Promise; /** * Get the underlying gRPC client */ getClient(): GrpcClient; /** * Create SDK instance for testnet */ static testnet(config?: Partial): IoTeXSDK; /** * Create SDK instance for mainnet */ static mainnet(config?: Partial): IoTeXSDK; /** * Create SDK instance for local node */ static localhost(config?: Partial): IoTeXSDK; } export { iotxToRau, rauToIotx, rauToQev, qevToRau, parseDuration, formatDuration } from './utils/conversion'; export { IoTeXError, handleGrpcError } from './utils/errors'; export { isValidIoAddress, isValidEthAddress, isValidAddress, isValidBLSPubKey, isValidAmount, isValidDuration, isValidCandidateName, isValidPrivateKey, } from './utils/validation'; export { generateKeyPair, getPublicKey, getAddress, getEthAddress, toEthAddress, toIoAddress, signMessage, verifyMessage, hashSHA256, hashKeccak256, } from './account/crypto'; export * from './types'; export { GrpcClient } from './client/grpc-client'; export { Account } from './account/account'; export { Keystore } from './account/keystore'; export { HDWallet } from './account/hdwallet'; export { NodeDelegate } from './node/delegate'; export { Stake2 } from './stake/stake2'; export { Blockchain } from './blockchain/queries'; export default IoTeXSDK; //# sourceMappingURL=index.d.ts.map