View Source MyspaceIPFS.Bitswap (Myspace IPFS v0.1.0)

MyspaceIPFS.Bitswap is where the bitswap commands of the IPFS API reside.

Link to this section Summary

Functions

Get the current bitswap ledger for a given peer.

Reprovide blocks to the network.

Show some diagnostic information on the bitswap agent.

Get the current bitswap wantlist.

Link to this section Functions

@spec ledger(peer_id()) :: okmapped()

Get the current bitswap ledger for a given peer.

parameters

Parameters

https://docs.ipfs.tech/reference/kubo/rpc/#api-v0-bitswap-ledger

peer - The peer ID to get the ledger for.

@spec reprovide() :: okmapped()

Reprovide blocks to the network.

@spec stat(opts()) :: okmapped()

Show some diagnostic information on the bitswap agent.

options

Options

https://docs.ipfs.tech/reference/kubo/rpc/#api-v0-bitswap-stat

[
  `verbose`: <bool>, # Print extra information.
  `human`: <bool>, # Print sizes in human readable format (e.g., 1.2K 234M 2G).
]
@spec wantlist() :: okmapped()

Get the current bitswap wantlist.

parameters

Parameters

https://docs.ipfs.tech/reference/kubo/rpc/#api-v0-bitswap-wantlist

peer - The peer ID to get the wantlist for. Optional.

@spec wantlist(peer_id()) :: okmapped()