Hi, Yes, I did. But not sure if it is a proper way or not.
// Broadcast
curl http://127.0.0.1:4000/api/ --user rpc:xcppw1234 -H 'Content-Type: application/json; charset=UTF-8' -H 'Accept: application/json, text/javascript' --data-binary '{"jsonrpc":"2.0", "id":0, "method":"create_broadcast", "params":{"source":"1A31xhRp9FyQZXG57hXczaVLkH5Dm3m9jy", "fee_fraction":0.05, "text":"A vs. B - A=1, B=2", "timestamp":1419836433, "value":-1}}'
// Bet by playerA
curl http://127.0.0.1:4000/api/ --user rpc:xcppw1234 -H 'Content-Type: application/json; charset=UTF-8' -H 'Accept: application/json, text/javascript' --data-binary '{"jsonrpc":"2.0", "id":0, "method":"create_bet", "params":{"source":"1KMdf7VWLEBdCo9iwmtpW7kJaSzSAUz2zJ", "feed_address":"1A31xhRp9FyQZXG57hXczaVLkH5Dm3m9jy", "bet_type":2, "deadline":1419937909, "wager_quantity":1, "counterwager_quantity":3, "target_value":2, "expiration":120}}'
// Bet by playerB
curl http://127.0.0.1:4000/api/ --user rpc:xcppw1234 -H 'Content-Type: application/json; charset=UTF-8' -H 'Accept: application/json, text/javascript' --data-binary '{"jsonrpc":"2.0", "id":0, "method":"create_bet", "params":{"source":"143q1MJUTRgsaXEcU86f8mMx6UThZFfW1Y", "feed_address":"1A31xhRp9FyQZXG57hXczaVLkH5Dm3m9jy", "bet_type":2, "deadline":1419937909, "wager_quantity":3, "counterwager_quantity":1, "target_value":1, "expiration":120}}'
// Broadcast the result (The result is 2)
curl http://127.0.0.1:4000/api/ --user rpc:xcppw1234 -H 'Content-Type: application/json; charset=UTF-8' -H 'Accept: application/json, text/javascript' --data-binary '{"jsonrpc":"2.0", "id":0, "method":"create_broadcast", "params":{"source":"1A31xhRp9FyQZXG57hXczaVLkH5Dm3m9jy", "fee_fraction":0.05, "text":"A vs. B - A=1, B=2", "timestamp":1419842706, "value":2}}'
I have two questions.
1. When does the system change to close status? I expected that the trigger is sending a value except for -1 by the operate.
2. It seems that broadcast does not have ID. Of course tx_hash is a unique key but it is not used when betting. My question is that is it possible to broadcast multiple broadcasts, like game-A and game-B, by one operator (same bitcoin address) ? I wonder how the system distinguish multiple broadcasts when player bet.
Regarding the testnet. Yes I will sync blockchain from now.
Thanks,