Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ビットコイン クライアント (サーバー モードで実行中) は、トランザクションを受信して確認したときに HTTP リクエストを送信できますか? つまり、コールバック/確認のために PHP スクリプトに送信します。
これは、bitcoin.conf ファイルの walletnotify パラメーターを使用して可能です。
walletnotify=/home/bitcoin/transaction.sh %s
これにより、txid をパラメータとして transaction.sh スクリプトが呼び出されます。そこから基本的に何でもできます。
例えば:
#!/bin/sh curl -d "txid=$1" http://127.0.0.1/callback
注: 監視するアドレスは、ウォレットの一部である必要があります