walletnotify with namecoind

Post Reply
domi771
Posts: 3
Joined: Thu Sep 25, 2014 9:06 am

walletnotify with namecoind

Post by domi771 »

I am looking to integrate Namecoin NMC into our exchange. We normally communicate with the wallets over walletnotify. However I can not find this function in namecoind.

How can I communicate with namecoind from outside?

I would need to do this command:

Code: Select all

    walletnotify=/usr/local/sbin/rabbitmqadmin publish routing_key=deposit.coin payload='{"txid":"%s", "channel_key":"namecoin"}
any help welcome!

domob
Posts: 1129
Joined: Mon Jun 24, 2013 11:27 am
Contact:

Re: walletnotify with namecoind

Post by domob »

You can take a look at the "waitforblock" RPC call. This allows you to be notified about new blocks arriving. Afterwards, you can use the usual commands like "listtransactions" to find out what has changed. There's currently no way to be notified about incoming unconfirmed transactions.

If you need more (like the "walletnotify" call you mentioned), we could add it. Feel free to submit a patch or to put up a bounty. If you have sufficient funding, I can devote time to do it for you according to what you need.
BTC: 1domobKsPZ5cWk2kXssD8p8ES1qffGUCm | NMC: NCdomobcmcmVdxC5yxMitojQ4tvAtv99pY
BM-GtQnWM3vcdorfqpKXsmfHQ4rVYPG5pKS
Use your Namecoin identity as OpenID: https://nameid.org/

domi771
Posts: 3
Joined: Thu Sep 25, 2014 9:06 am

Re: walletnotify with namecoind

Post by domi771 »

domob, thank you for the reply ant hint on how to get this solved.

As much as I would love to have this customized from you we do not have the budgest currently for such customizations since most goes into marketing at this time.

domi771
Posts: 3
Joined: Thu Sep 25, 2014 9:06 am

Re: walletnotify with namecoind

Post by domi771 »

I see you where developing as well here: https://forum.namecoin.info/viewtopic.p ... 0&start=40

Are all those libcoin versions non walletnotify supporting?

https://github.com/khalahan/libcoin
https://github.com/jonasbits/libcoin/tr ... stnet-beta

etc?

the way you showed me below (listtrans, waitforblock) looks aswell promising

domob
Posts: 1129
Joined: Mon Jun 24, 2013 11:27 am
Contact:

Re: walletnotify with namecoind

Post by domob »

I don't know about libcoin. If you want to check it out, use libcoin/libcoin (the official one).

If you want to try to use some other method, let me know if I can help you.
BTC: 1domobKsPZ5cWk2kXssD8p8ES1qffGUCm | NMC: NCdomobcmcmVdxC5yxMitojQ4tvAtv99pY
BM-GtQnWM3vcdorfqpKXsmfHQ4rVYPG5pKS
Use your Namecoin identity as OpenID: https://nameid.org/

Post Reply