UNPKG

nft-folder-blockchain-connector-besu

Version:

A NestJS-based blockchain connector that communicates with specific smart contracts from the NFT Folder project.

19 lines (18 loc) 774 B
import { Contract } from 'ethers'; import { ConfigurationService } from 'src/configuration/configuration.service'; export declare class BlockchainService { readonly provider: any; private readonly configurationService; private readonly logger; private readonly blockTime; private contractInstances; constructor(provider: any, configurationService: ConfigurationService); returnSignerAddress(): string; private returnSignerWallet; getContractInstance(contractAddress: string, abi: any): Contract; fetchTransactionTimestamp(transactionHash: string): Promise<string>; waitForTheNextBlock(): Promise<void>; handleError(error: any, contractAddress: string): void; private handleBlockchainError; private handleOtherError; }