Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: BitSharesX/config.json walletnotify equivalent  (Read 496 times)

0 Members and 1 Guest are viewing this topic.

Offline domi771

  • Newbie
  • *
  • Posts: 6
    • View Profile
BitSharesX/config.json walletnotify equivalent
« on: September 24, 2014, 06:39:20 PM »

I am currently integrating BitsharesX into our crypto exchnage. PTS we could integrate like any other coin - however BitsharesX client is different.

What do I need to enter in the config.json file in order to have the same functionality as walletnotify with a regular coin?

What I have done so far is:

1) https://github.com/dacsunlimited/bitsharesx installed and compiled btsx client
2) ./bitshares_client --server -> downloaded blockchain and started client as server
3) /home/deploy/.BitSharesX/config.json -> my config looks like this:

   
    {
      "rpc": {
        "enable": true,
        "rpc_user": "myuser",
        "rpc_password": "mypass",
        "rpc_endpoint": "127.0.0.1:0",
        "httpd_endpoint": "127.0.0.1:0",
        "htdocs": "./htdocs"
         },
         ....

      "growl_notify_endpoint": null,
      "growl_password": null,
      "growl_bitshares_client_identifier": null
    }

I guess I would add the line

    walletnotify=/usr/local/sbin/rabbitmqadmin publish routing_key=deposit.coin payload='{"txid":"%s", "channel_key":"bitsharesx"}

to growl_notify_endpoint ?

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12339
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: BitSharesX/config.json walletnotify equivalent
« Reply #1 on: September 24, 2014, 07:05:02 PM »
What do I need to enter in the config.json file in order to have the same functionality as walletnotify with a regular coin?
That is just not available in the wallet yet!! no walletnotify!
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline domi771

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: BitSharesX/config.json walletnotify equivalent
« Reply #2 on: September 24, 2014, 10:30:49 PM »
thank you for the reply.

but other exchanges do have BitsharesX listed and are trading them. Therefore it must be possible to communicate with the BitsharesX client somehow as well?

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12339
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: BitSharesX/config.json walletnotify equivalent
« Reply #3 on: September 25, 2014, 06:19:03 AM »
Sure .. you can execute all commands using an RPC call from python/perl/php/ ....

You may start here:
https://bitsharestalk.org/index.php?topic=5562.0;all
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline svk

Re: BitSharesX/config.json walletnotify equivalent
« Reply #4 on: September 25, 2014, 09:26:20 AM »
And another thread with more info:

https://bitsharestalk.org/index.php?topic=8654.0
Worker: dev.bitsharesblocks

Offline domi771

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: BitSharesX/config.json walletnotify equivalent
« Reply #5 on: September 25, 2014, 08:04:04 PM »
thank you guys! I am using ruby but will see what I can achieve the next few days. More help/links/info welcomed since we really want to have BTSX listed on our exchange asap :)

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12339
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: BitSharesX/config.json walletnotify equivalent
« Reply #6 on: September 25, 2014, 08:09:18 PM »
I am not familiar with ruby but maybe you should check this out:
https://github.com/dacsunlimited/bitsharesx/tree/master/libraries/api/ruby_generator
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline toast

Re: BitSharesX/config.json walletnotify equivalent
« Reply #7 on: September 25, 2014, 08:56:33 PM »
I am not familiar with ruby but maybe you should check this out:
https://github.com/dacsunlimited/bitsharesx/tree/master/libraries/api/ruby_generator

That generates javascript, not ruby. Misleading name =P
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.

Offline domi771

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: BitSharesX/config.json walletnotify equivalent
« Reply #8 on: September 25, 2014, 09:08:28 PM »
true - but still its some ruby code together with BitsharesX  :D I am surprised that there are not yet any "easy" implementations or at least examples of the basic functions the good old Bitcoin is offering.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12339
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: BitSharesX/config.json walletnotify equivalent
« Reply #9 on: September 25, 2014, 09:18:32 PM »
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

 

Google+