How I can check status of transactions from the hash of the transaction history ?
hash of tx history is not tx_hash (I can check tx_hash on blockchain)
The method got changed to blockchain.scripthash.subscribe. You can't. The hash orders the transactions in specific order together with their confirmations, -1 for unconfirmed and 0 for confirmed. The way this works is for scripts to monitor and compare the hashes between different calls and they will know that there is either a new transaction or an unconfirmed transaction has gotten a confirmation, this allows for a quick and easy way to determine the status of transactions without much hassle. It's a one way function so you can't get the list from the hash alone.
If you want to get the list of transaction and it's information, you should be looking at blockchain.scripthash.get_history.
what is a typical workflow to get notified and confirm transaction (1 is enough)?
1 electrum daemon -d
2 electrum load_wallet
then JSONRPC calls:
3 electrum getunusedaddress
{"id":"myquery","method":"getunusedaddress","params":[]}
=>>>>
{
"id": "myquery",
"jsonrpc": "2.0",
"result": "tb1qfzvln0uccwvqf9n727l9eyaaklyhpprru5rhyj"
}
display address for payer person
4 set notify to backend
{"jsonrpc":"2.0","id":"curltext","method":"notify", "params": {"address":"tb1qfzvln0uccwvqf9n727l9eyaaklyhpprru5rhyj", "URL":"192.168.0.1/notify"}}
when person pays I get responses at backend:
{
address: 'tb1qfzvln0uccwvqf9n727l9eyaaklyhpprru5rhyj',
status: '3a54b412d59fcad712f3d6f8120b65f3bd670b448a2ec7ae238b3ec05ec4d8e4'
}
{
address: 'tb1qfzvln0uccwvqf9n727l9eyaaklyhpprru5rhyj',
status: 'd28c3faa2a3632f33d2bae516f2bc6b79f94c0ef58f914aeead9ff29bf4015e3'
}
{
address: 'tb1qfzvln0uccwvqf9n727l9eyaaklyhpprru5rhyj',
status: 'a47c8b54068215ff6e5c672e870a81a11d590924fb82ab3d30539715f79c61c9'
}
I understand that these messages to backend reflects changes on address (confirmations)
status is
hash of transaction history, ok. You said "status" is useless.
How I can confirm payment? if "status" would be equal to transaction ID - I can check it my "electrum get_tx_status txID"? but..
thanx.