kubo-rpc-client-esm-cjs
Version:
A client library for the Kubo RPC API
18 lines (16 loc) • 463 B
JavaScript
import { createWantlist } from './wantlist.js'
import { createWantlistForPeer } from './wantlist-for-peer.js'
import { createStat } from './stat.js'
/**
* @param {import('../types').Options} config
*/
export function createBitswap (config) {
return {
/**
* TODO: https://github.com/ipfs/js-kubo-rpc-client/issues/99
*/
wantlist: createWantlist(config),
wantlistForPeer: createWantlistForPeer(config),
stat: createStat(config)
}
}