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

I just found:
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/"

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

1 Like