Author

Topic: How to make custom behaviour based on bitcoind transaction? (Read 126 times)

jr. member
Activity: 413
Merit: 5

Yeah it's possible, you just have to write a program or script to connect to bitcoind via the RPC, and you probably need to use the ZMQ socket to get realtime notifications of transactions.
Are there any example of those sort of program or script?

And what is ZMQ socket, how to make?

How much software development experience do you have? Why do you want such a script?
javascript 1 year, C# 7 years.  For research.
hero member
Activity: 854
Merit: 658
rgbkey.github.io/pgp.txt

Yeah it's possible, you just have to write a program or script to connect to bitcoind via the RPC, and you probably need to use the ZMQ socket to get realtime notifications of transactions.
Are there any example of those sort of program or script?

And what is ZMQ socket, how to make?

How much software development experience do you have? Why do you want such a script?
jr. member
Activity: 413
Merit: 5

Yeah it's possible, you just have to write a program or script to connect to bitcoind via the RPC, and you probably need to use the ZMQ socket to get realtime notifications of transactions.
Are there any example of those sort of program or script?

And what is ZMQ socket, how to make?
hero member
Activity: 854
Merit: 658
rgbkey.github.io/pgp.txt
So bitcoin daemon is running on ubuntu server, that is itself a wallet, right?

Let's say this is A wallet.

1. If some other(B) send bitcoin to A wallet's one address, then A knows it immediately?
Can we type command, [ bitcoin-cli listtransactions ] returns above simulataneously?

2. Based on above 1, can we do some custom behaviour like send all received bitcoin (from B) to another C's address?
This should automatically done by program running.
How to do this?


Yeah it's possible, you just have to write a program or script to connect to bitcoind via the RPC, and you probably need to use the ZMQ socket to get realtime notifications of transactions.

Just a small note, A wouldn't know it "immediately", but it would after a few seconds. It can take a bit to propagate through the network sometimes.
jr. member
Activity: 413
Merit: 5
So bitcoin daemon is running on ubuntu server, that is itself a wallet, right?

Let's say this is A wallet.

1. If some other(B) send bitcoin to A wallet's one address, then A knows it immediately?
Can we type command, [ bitcoin-cli listtransactions ] returns above simulataneously?

2. Based on above 1, can we do some custom behaviour like send all received bitcoin (from B) to another C's address?
This should automatically done by program running.
How to do this?



Jump to: