UNPKG

irys-complete-toolkit

Version:

Complete Irys SDK toolkit supporting all chains, tokens, and features

65 lines (64 loc) 2.63 kB
/** * Irys Complete Toolkit * Main entry point for the comprehensive Irys SDK toolkit */ export { IrysNodeSDK } from './sdk/NodeSDK'; export { IrysWebSDK } from './sdk/WebSDK'; export { IrysGraphQLClient } from './clients/GraphQLClient'; export { IrysRestClient } from './clients/RestClient'; export { IrysCLI } from './cli/IrysCLI'; import { IrysNodeSDK } from './sdk/NodeSDK'; import { IrysWebSDK } from './sdk/WebSDK'; import { IrysGraphQLClient } from './clients/GraphQLClient'; import { IrysRestClient } from './clients/RestClient'; import { IrysCLI } from './cli/IrysCLI'; export { IrysFormatter as Formatter, IrysValidator as Validator, IrysDataProcessor as DataProcessor, IrysNFTUtils as NFTUtils, IrysUrlUtils as UrlUtils, IrysCryptoUtils as CryptoUtils, } from './utils'; export * from './types'; export declare class IrysToolkit { /** * Create a Node.js SDK instance */ static createNodeSDK(config: import('./types').NodeSDKConfig): IrysNodeSDK; /** * Create a Web SDK instance */ static createWebSDK(config: import('./types').WebSDKConfig): IrysWebSDK; /** * Create a GraphQL client */ static createGraphQLClient(endpoint?: string): IrysGraphQLClient; /** * Create a REST client */ static createRestClient(baseUrl?: string, timeout?: number): IrysRestClient; /** * Create a CLI wrapper */ static createCLI(cliPath?: string): IrysCLI; /** * Get all supported tokens */ static getSupportedTokens(): string[]; /** * Get token information */ static getTokenInfo(token: string): any; /** * Validate transaction ID */ static isValidTxId(txId: string): boolean; /** * Format bytes to human readable */ static formatBytes(bytes: number, decimals?: number): string; /** * Generate gateway URL */ static getGatewayUrl(txId: string): string; /** * Generate mutable reference URL */ static getMutableUrl(txId: string): string; } export default IrysToolkit; export declare const createNodeSDK: typeof IrysToolkit.createNodeSDK, createWebSDK: typeof IrysToolkit.createWebSDK, createGraphQLClient: typeof IrysToolkit.createGraphQLClient, createRestClient: typeof IrysToolkit.createRestClient, createCLI: typeof IrysToolkit.createCLI, getSupportedTokens: typeof IrysToolkit.getSupportedTokens, getTokenInfo: typeof IrysToolkit.getTokenInfo, isValidTxId: typeof IrysToolkit.isValidTxId, formatBytes: typeof IrysToolkit.formatBytes, getGatewayUrl: typeof IrysToolkit.getGatewayUrl, getMutableUrl: typeof IrysToolkit.getMutableUrl;