rust-ipfs icon indicating copy to clipboard operation
rust-ipfs copied to clipboard

Question: Is there an RPC API like the Kubo node?

Open Kofituo opened this issue 8 months ago • 2 comments

Hello, The Kubo node has an RPC API endpoint. Its in the config file

"Addresses": {
    "API": "/ip4/0.0.0.0/tcp/5002", // this
    "Announce": null,
    "AppendAnnounce": null,
    "Gateway": "/ip4/0.0.0.0/tcp/9002",
    "NoAnnounce": null,
    "Swarm": [
      "/ip4/0.0.0.0/tcp/4001",
      "/ip6/::/tcp/4001",
      "/ip4/0.0.0.0/udp/4001/webrtc-direct",
      "/ip4/0.0.0.0/udp/4001/quic-v1",
      "/ip4/0.0.0.0/udp/4001/quic-v1/webtransport",
      "/ip6/::/udp/4001/webrtc-direct",
      "/ip6/::/udp/4001/quic-v1",
      "/ip6/::/udp/4001/quic-v1/webtransport"
    ]
  },

Is there a way to do similar with rust-ipfs? Thanks!

Kofituo avatar Apr 05 '25 20:04 Kofituo

Hey! Thank for the question. Currently, rust-ipfs would not be doing anything additional internally such as a RPC API. This would likely need to be done externally. I may consider adding it to https://github.com/dariusc93/ipfs-server when I get the time to update it and add additional features to it (it is WIP and not really considered usable beyond just testing right now).

dariusc93 avatar Apr 08 '25 05:04 dariusc93

Thanks

Kofituo avatar Apr 08 '25 17:04 Kofituo