Closed White2001Offl closed 1 year ago
ZMQ does have some basic documentation here: https://github.com/monero-project/monero/blob/master/docs/ZMQ.md
Also did you see sech1's reply on IRC?
Mar 30 16:35:53 <white2001[m]> hi guys
Mar 30 16:36:09 <white2001[m]> can anyone help me to decode the zmq data
Mar 30 16:36:20 <white2001[m]> I'm searching in internet for 4 days
Mar 30 16:36:40 * white2001[m] sent a code block: https://libera.ems.host/_matrix/media/r0/download/libera.chat/1a07ce07075bbec89187ceb032a3d548d5bc3bc2
Mar 30 16:37:26 <white2001[m]> Here is the data I receive from zmq
Mar 30 16:37:26 <white2001[m]> how can I decode and get txn hash , see amount and get the sender and receive address
Mar 30 17:02:38 <bridgerton[m]> <sech1> amount, sender and receive address? Sir, this is Monero
Mar 30 17:06:45 <bridgerton[m]> <sech1> to get txn hash, subscribe to json-minimal-txpool_add
@selsta yeah, but I wanna get the inputs and output address with amount. Basically I'm trying to build a payment gateway for monero, And the input , output decode from ZMQ makes my work easy. Is there any way? If not how can I get the inputs and outputs from txn hash. I tried RPC call but I'm failing idk if docs wrong or I am?
Addresses and amounts are hidden in Monero. For payment gateways to work, you have to use viewkey + 1 subaddress for each payment - then you can see how much and when each of subaddresses received. But it can only be done with RPC calls.
@SChernykh which RPC call I've to use?
/get_transactions ?
If so I tried by running monero-wallet-rpc
by setting port and wallet dir
but when I make a request
curl http://127.0.0.1:28088/json_rpc -d '{"jsonrpc": "2.0","id": "0", "method": "'get_transactions'", "params": '"{\"txs_hashes\": [\"c1aad1558a9e2a93b10ec30859afbbb4eb540bb64c0884e82916146ebb8e463c\"]}"'}' -H 'Content-Type: application/json'
{
"error": {
"code": -32700,
"message": "Parse error"
},
"id": 0,
"jsonrpc": "2.0"
}curl: (6) Could not resolve host: 2.0,id
curl: (6) Could not resolve host: 0,
curl: (6) Could not resolve host: method
curl: (6) Could not resolve host: 'get_transactions',
curl: (6) Could not resolve host: params
curl: (3) [globbing] nested brace in column 17
curl: (6) Could not resolve host: application
I get this error
ok I get it now how all works. only think i wanna know is how can I decode the out and in address and amount data so that I can verify If the address is received or not and how much it received
You can't get the addresses from ZMQ data, please re-read the previous comments.
Hi, I wanna know how to decode the ZMQ data i.e.,
json-full-chain_main
andjson-full-txpool_add
like to get TXN hash , sender , receiver address and amount and the block hashI searched everywhere but unable to find out there is not even a docs to do
This is the data I get in ZMQ.
Thanks