ipfs-http-client
Version:
A client library for the IPFS HTTP API
17 lines (15 loc) • 458 B
JavaScript
import { createWantlist } from './wantlist.js'
import { createWantlistForPeer } from './wantlist-for-peer.js'
import { createStat } from './stat.js'
import { createUnwant } from './unwant.js'
/**
* @param {import('../types').Options} config
*/
export function createBitswap (config) {
return {
wantlist: createWantlist(config),
wantlistForPeer: createWantlistForPeer(config),
unwant: createUnwant(config),
stat: createStat(config)
}
}