- Preparing search index...
- The search index is not available
cardano-sdk
Function mockChainHistoryProvider2
- mockChainHistoryProvider2(delayMs: number): {
blocksByHashes: Mock<any, any>;
healthCheck: Mock<any, any>;
transactionsByAddresses: Mock<Promise<Paginated<HydratedTx>>, [TransactionsByAddressesArgs]>;
transactionsByHashes: Mock<any, any>;
}
-
Returns {
blocksByHashes: Mock<any, any>;
healthCheck: Mock<any, any>;
transactionsByAddresses: Mock<Promise<Paginated<HydratedTx>>, [TransactionsByAddressesArgs]>;
transactionsByHashes: Mock<any, any>;
}
-
blocksByHashes: Mock<any, any>
-
healthCheck: Mock<any, any>
-
-
transactionsByHashes: Mock<any, any>
A different provider stub for testing, supports delay to simulate network requests.
Returns
ChainHistoryProvider that returns data that is slightly different to mockChainHistoryProvider.