rust-ipfs
rust-ipfs copied to clipboard
Question: Is there an RPC API like the Kubo node?
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!
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).
Thanks