Acquire the delegation destination node with the API

I want to acquire the delegation destination node with the API.

I regularly save the state of the harvest in my database.
I am always sending API requests to the delegated node.

If the delegate node is changed,
I want to automatically switch the destination of the API request.

How can I know delegated node IP or Domain?

Hmm. As far as I know you can’t (except checking all nodes one by one). Some external tool is changing your node, yes?

Thank you for always answering.

Hmm… I understood.
How did this tool tell you before, how does it detect restart …?

(Even if you receive notification of restarting,
it seems that the delegation destination node of Nano Wallet has not changed,
is it another problem?)

You mean nem-tools.com?
It works in simple way. It has list of supernodes and checks if it restarted. If restarted then it also restarts all harvesters connected to this node.
It stores in database on which node you are currently harvesting. Maybe it also checks periodicly if wallet is harvesting on node stored in database (if not restart on another free node).

Nanowallet stores selected by you node in local storage so it doesn’t know if nem-tools or other tool changed harvested node. So it shows status on node last choosen in nanowallet (which when you use nem-tools.com is probably incorrect) but you can point manually to node from last harvesting restart email.

1 Like

I forgot to paste the URL of nem-tools. :frowning:

I see. understood.
Thank you for answering politely every time.
Please accept a little tip.:slight_smile:

perfectly explained. thanks! :slight_smile:

1 Like

if the service of nem-tools restarts harvesting for you an e-mail should be sent to the e-mail you registered with.

the e-mail contains the IP of the node harvesting was restarted on for you. so if you want to manually check harvesting status you need to copy the IP from the mail and paste it into nanowallet. then nanowallet should again show the status “active”

1 Like

Thank you for your reply.
Today, when I tried a new version of NanoWallet,
I confirmed the effectiveness of harvesting at the node where nem-tool restarted.

Are you a developer of nem-tool.com?

1 Like

yes, nem-tools.com developed by myself

1 Like

Great!
I thought that I would make a similar tool,
but that seems to be no longer necessary.

Although I might developing tool exclusive for myself.