How can i add my own bootstrap nodes through api?

According api doc, i did not find any api about adding or removing a target bootstrap node info?
How can i do that if i need to process adding and removing bootstrap node in program?

Which API are you thinking about specifically? There is different ones for the different languages and also the HTTP API for the core implementations

HTTP API.
I just found:
/bootstrap/rm/all
/bootstrap/list
/bootstrap/add/default,
but no api like /bootstrap/add?arg=<ipfs_addr>

I see. Could you tell me how you found out about those endpoints?

For adding a new bootstrap peer, you’ll can do the following:

curl "localhost:5001/api/v0/bootstrap/add?arg=/dnsaddr/bootstrap.libp2p.io/ipfs/QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN"

Oh, that’s what i want.
So maybe the http api doc in official website should be updated.
Thanks very much!

1 Like