Home > tupelo-wasm-sdk > WrappedBlockService
A wrapper around a callback-based IBlockService that allows async/await There is an open PR on the bitswap PR which will allow us to switch to the ipfs-maintained version.
Signature:
export declare class WrappedBlockService implements IBlockService
Constructor | Modifiers | Description |
---|---|---|
(constructor)(blockservice) | Constructs a new instance of the WrappedBlockService class |
Method | Modifiers | Description |
---|---|---|
delete(cid) | ||
get(cid) | ||
hasExchange() | ||
put(block) | ||
setExchange(bitswap) | ||
unsetExchange() |