tupelo-wasm-sdk

Home > tupelo-wasm-sdk > WrappedBlockService

WrappedBlockService class

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 

Constructors

Constructor Modifiers Description
(constructor)(blockservice)   Constructs a new instance of the WrappedBlockService class

Methods

Method Modifiers Description
delete(cid)    
get(cid)    
hasExchange()    
put(block)    
setExchange(bitswap)    
unsetExchange()