Command-line in QT Wallet
- Launch QT Wallet
- In the top menu bar, open
Help
>Debug window
Event Hashes
event Transfer(address indexed _from, address indexed _to, uint256 _value)
ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
event TopicCreated(uint16 indexed _version, address indexed _topicAddress, bytes32[10] _name, bytes32[11] _resultNames, uint8 _numOfResults)
5f86751734872d7179519ded4087b938c7f8b03dd3511225a5fc97a687701126
event CentralizedOracleCreated(uint16 indexed _version, address indexed _contractAddress, address indexed _eventAddress, uint8 _numOfResults, address _oracle, uint256 _bettingStartBlock, uint256 _bettingEndBlock, uint256 _resultSettingStartBlock, uint256 _resultSettingEndBlock, uint256 _consensusThreshold)
1e482c6081e57445e988bc379f3066a27d0db9fb8d6c9fb9aeff950cec4c1897
event DecentralizedOracleCreated(uint16 indexed _version, address indexed _contractAddress, address indexed _eventAddress, uint8 _numOfResults, uint8 _lastResultIndex, uint256 _arbitrationEndBlock, uint256 _consensusThreshold)
30d17e534a780acbd9c3dcd3b61a67e5a39f28dd86aa1c323fb1b30d406608da
event OracleResultVoted(uint16 indexed _version, address indexed _oracleAddress, address indexed _participant, uint8 _resultIndex, uint256 _votedAmount)
999983c5b5c285890ab4b2b91f9a82d0ca95784c9b138bd37110ba06faa45f67
event OracleResultSet(uint16 indexed _version, address indexed _oracleAddress, uint8 _resultIndex)
766d7bf9e9e8671204cd1da1b1b107d50247d2d1c389c552765262ee3afefb9b
event FinalResultSet(uint16 indexed _version, address indexed _eventAddress, uint8 _finalResultIndex)
14959b24f45a8f41b814b331ae09533db9d7e7962ca200e484f849a1fd1955aa
event WinningsWithdrawn(uint16 indexed _version, address indexed _winner, uint256 _qtumTokenWon, uint256 _botTokenWon)
2b37430897e8d659983fc8ae7ab83ad5b3be5a7db7ea0add5706731c2395f550
Searchlogs Queries
event TopicCreated
# Use EventFactory address.
searchlogs 1 -1 '{"addresses": ["d49b4e6133957c635ecbabfb67fd14fe74da52cd"]}' '{"topics": ["5f86751734872d7179519ded4087b938c7f8b03dd3511225a5fc97a687701126"]}'
# Example TopicCreated event in transaction found
{
"address": "d49b4e6133957c635ecbabfb67fd14fe74da52cd",
"topics": [
"5f86751734872d7179519ded4087b938c7f8b03dd3511225a5fc97a687701126",
"0000000000000000000000000000000000000000000000000000000000000001",
"000000000000000000000000dbcaeecd8d8c4284cb9d68ba5ecd2ff1e530c354"
],
"data": "57686f2077696c6c20626520746865204e424120416c6c2053746172204d565020696e20323031383f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000496e76616c6964000000000000000000000000000000000000000000000000004375727279000000000000000000000000000000000000000000000000000000447572616e7400000000000000000000000000000000000000000000000000004461766973000000000000000000000000000000000000000000000000000000416e7465746f6b6f756e6d706f000000000000000000000000000000000000005061756c000000000000000000000000000000000000000000000000000000005765737462726f6f6b000000000000000000000000000000000000000000000048617264656e00000000000000000000000000000000000000000000000000004a616d6573000000000000000000000000000000000000000000000000000000477265656e00000000000000000000000000000000000000000000000000000042616c6c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b"
}
# address: d49b4e6133957c635ecbabfb67fd14fe74da52cd is EventFactory
# topics[0]: 5f86751734872d7179519ded4087b938c7f8b03dd3511225a5fc97a687701126 is TopicCreated event
# topics[1]: 0000000000000000000000000000000000000000000000000000000000000001 is uint16 indexed _version
# topics[2]: 000000000000000000000000dbcaeecd8d8c4284cb9d68ba5ecd2ff1e530c354 is address indexed _topicAddress
# data: bytes32[10] _name, bytes32[10] _resultNames, uint8 _numOfResults
event CentralizedOracleCreated
# Use EventFactory address.
# The CentralizedOracle gets created when creating a new TopicEvent in the EventFactory.
searchlogs 1 -1 '{"addresses": ["d49b4e6133957c635ecbabfb67fd14fe74da52cd"]}' '{"topics": ["1e482c6081e57445e988bc379f3066a27d0db9fb8d6c9fb9aeff950cec4c1897"]}'
# Example CentralizedOracleCreated event in transaction found
{
"address": "ce39131df7cd9965d2ea43dae6281bb1b7933705",
"topics": [
"1e482c6081e57445e988bc379f3066a27d0db9fb8d6c9fb9aeff950cec4c1897",
"0000000000000000000000000000000000000000000000000000000000000000",
"000000000000000000000000d78f96ea55ad0c8a283b6d759f39cda34a7c5b10",
"000000000000000000000000461fc6e08975b5a8aad006584066e190bf2db835"
],
"data": "000000000000000000000000000000000000000000000000000000000000000500000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa300000000000000000000000000000000000000000000000000000000000100e000000000000000000000000000000000000000000000000000000000000101d0000000000000000000000000000000000000000000000000000000000001020200000000000000000000000000000000000000000000000000000000000105b800000000000000000000000000000000000000000000000000000002540be400"
}
# address: ce39131df7cd9965d2ea43dae6281bb1b7933705 is OracleFactory
# topics[0]: 1e482c6081e57445e988bc379f3066a27d0db9fb8d6c9fb9aeff950cec4c1897 is CentralizedOracleCreated event
# topics[1]: 0000000000000000000000000000000000000000000000000000000000000000 is uint16 indexed _version
# topics[2]: 000000000000000000000000d78f96ea55ad0c8a283b6d759f39cda34a7c5b10 is address indexed _contractAddress
# topics[3]: 000000000000000000000000461fc6e08975b5a8aad006584066e190bf2db835 is address indexed _eventAddress
# data: uint8 _numOfResults, address _oracle, uint256 _bettingStartBlock, uint256 _bettingEndBlock, uint256 _resultSettingStartBlock, uint256 _resultSettingEndBlock, uint256 _consensusThreshold
event DecentralizedOracleCreated
# Leave the addresses array blank.
# The origin contract address is from CentralizedOracle.
searchlogs 1 -1 '{"addresses": []}' '{"topics": ["30d17e534a780acbd9c3dcd3b61a67e5a39f28dd86aa1c323fb1b30d406608da"]}'
# Example DecentralizedOracleCreated event in transaction found
{
"address": "ce39131df7cd9965d2ea43dae6281bb1b7933705",
"topics": [
"30d17e534a780acbd9c3dcd3b61a67e5a39f28dd86aa1c323fb1b30d406608da",
"0000000000000000000000000000000000000000000000000000000000000000",
"00000000000000000000000009223575cc86e0c7d42f3b16f20fceb2caef828b",
"0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6"
],
"data": "000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010a7100000000000000000000000000000000000000000000000000000002540be400"
}
# address: ce39131df7cd9965d2ea43dae6281bb1b7933705 is OracleFactory
# topics[0]: 30d17e534a780acbd9c3dcd3b61a67e5a39f28dd86aa1c323fb1b30d406608da is DecentralizedOracleCreated event
# topics[1]: 0000000000000000000000000000000000000000000000000000000000000000 is uint16 indexed _version
# topics[2]: 00000000000000000000000009223575cc86e0c7d42f3b16f20fceb2caef828b is address indexed _contractAddress
# topics[3]: 0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6 is address indexed _eventAddress
# data: uint8 _numOfResults, uint8 _lastResultIndex, uint256 _arbitrationEndBlock, uint256 _consensusThreshold
event OracleResultVoted
# Leave the addresses array blank.
# The origin contract addresses are from CentralizedOracle and DecentralizedOracle.
# This includes both QTUM bets and BOT votes.
searchlogs 1 -1 '{"addresses": []}' '{"topics": ["999983c5b5c285890ab4b2b91f9a82d0ca95784c9b138bd37110ba06faa45f67"]}'
# Example OracleResultVoted event in transaction found
{
"address": "d78f96ea55ad0c8a283b6d759f39cda34a7c5b10",
"topics": [
"999983c5b5c285890ab4b2b91f9a82d0ca95784c9b138bd37110ba06faa45f67",
"0000000000000000000000000000000000000000000000000000000000000000",
"000000000000000000000000d78f96ea55ad0c8a283b6d759f39cda34a7c5b10",
"00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3"
],
"data": "0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000001dcd6500"
}
# address: d78f96ea55ad0c8a283b6d759f39cda34a7c5b10 is CentralizedOracle
# topics[0]: 999983c5b5c285890ab4b2b91f9a82d0ca95784c9b138bd37110ba06faa45f67 is OracleResultVoted event
# topics[1]: 0000000000000000000000000000000000000000000000000000000000000000 is uint16 indexed _version
# topics[2]: 000000000000000000000000d78f96ea55ad0c8a283b6d759f39cda34a7c5b10 is address indexed _oracleAddress
# topics[3]: 00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3 is address indexed _participant
# data: uint8 _resultIndex, uint256 _votedAmount
event OracleResultSet
# Leave the addresses array blank.
# The origin contract addresses are from CentralizedOracle and DecentralizedOracle.
searchlogs 1 -1 '{"addresses": []}' '{"topics": ["766d7bf9e9e8671204cd1da1b1b107d50247d2d1c389c552765262ee3afefb9b"]}'
# Example OracleResultSet event in transaction found
{
"address": "cb012dc9d576f6a52617f0afeb2ff388f28ac3e8",
"topics": [
"766d7bf9e9e8671204cd1da1b1b107d50247d2d1c389c552765262ee3afefb9b",
"0000000000000000000000000000000000000000000000000000000000000000",
"000000000000000000000000cb012dc9d576f6a52617f0afeb2ff388f28ac3e8"
],
"data": "0000000000000000000000000000000000000000000000000000000000000000"
}
# address: cb012dc9d576f6a52617f0afeb2ff388f28ac3e8 is CentralizedOracle
# topics[0]: 766d7bf9e9e8671204cd1da1b1b107d50247d2d1c389c552765262ee3afefb9b is OracleResultSet event
# topics[1]: 0000000000000000000000000000000000000000000000000000000000000000 is uint16 indexed _version
# topics[2]: 000000000000000000000000cb012dc9d576f6a52617f0afeb2ff388f28ac3e8 is address indexed _oracleAddress
# data: uint8 _resultIndex
event FinalResultSet
# Leave the addresses array blank.
# The origin contract address is from DecentralizedOracle.
searchlogs 1 -1 '{"addresses": []}' '{"topics": ["14959b24f45a8f41b814b331ae09533db9d7e7962ca200e484f849a1fd1955aa"]}'
# Example FinalResultSet event in transaction found
{
"address": "0387da9a3e773b559ca0367c5929360e4a4294f6",
"topics": [
"14959b24f45a8f41b814b331ae09533db9d7e7962ca200e484f849a1fd1955aa",
"0000000000000000000000000000000000000000000000000000000000000000",
"0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6"
],
"data": "0000000000000000000000000000000000000000000000000000000000000002"
}
# address: 0387da9a3e773b559ca0367c5929360e4a4294f6 is TopicEvent
# topics[0]: 14959b24f45a8f41b814b331ae09533db9d7e7962ca200e484f849a1fd1955aa is FinalResultSet event
# topics[1]: 0000000000000000000000000000000000000000000000000000000000000000 is uint16 indexed _version
# topics[2]: 0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6 is address indexed _eventAddress
# data: uint8 _finalResultIndex
event WinningsWithdrawn
# Leave the addresses array blank.
# The origin contract address is from TopicEvent.
searchlogs 1 -1 '{"addresses": []}' '{"topics": ["2b37430897e8d659983fc8ae7ab83ad5b3be5a7db7ea0add5706731c2395f550"]}'
# Example WinningsWithdrawn event in transaction found
{
"address": "0387da9a3e773b559ca0367c5929360e4a4294f6",
"topics": [
"2b37430897e8d659983fc8ae7ab83ad5b3be5a7db7ea0add5706731c2395f550",
"0000000000000000000000000000000000000000000000000000000000000000",
"00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3"
],
"data": "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004a817c800"
}
# address: 0387da9a3e773b559ca0367c5929360e4a4294f6 is TopicEvent
# topics[0]: 2b37430897e8d659983fc8ae7ab83ad5b3be5a7db7ea0add5706731c2395f550 is WinningsWithdrawn event
# topics[1]: 0000000000000000000000000000000000000000000000000000000000000000 is uint16 indexed _version
# topics[2]: 00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3 is address indexed _winner
# data: uint256 _qtumTokenWon, uint256 _botTokenWon
createTopic() Tx Receipt
Example EventFactory.createTopic() transaction receipt
$ ./qtum-cli -testnet gettransactionreceipt 05442c6605ea5c9ef995d6bdbf69f253556057e6fa0c18b13a31cc3c5d46d395
[
{
"blockHash": "1896215d17692c05a9d079d851cfc6cd580484cbf5b04c02fb2b12eab3368fcd",
"blockNumber": 70662,
"transactionHash": "05442c6605ea5c9ef995d6bdbf69f253556057e6fa0c18b13a31cc3c5d46d395",
"transactionIndex": 2,
"from": "17e7888aa7412a735f336d2f6d784caefabb6fa3",
"to": "d49b4e6133957c635ecbabfb67fd14fe74da52cd",
"cumulativeGasUsed": 2759868,
"gasUsed": 2759868,
"contractAddress": "d49b4e6133957c635ecbabfb67fd14fe74da52cd",
"log": [
{
"address": "18a4fd5add78af3deb2e3dd97a47f9dc008caf82",
"topics": [
"1e482c6081e57445e988bc379f3066a27d0db9fb8d6c9fb9aeff950cec4c1897",
"0000000000000000000000000000000000000000000000000000000000000001",
"0000000000000000000000004c8a625b09c9417e3777df9a7196dca47bba164b",
"000000000000000000000000dbcaeecd8d8c4284cb9d68ba5ecd2ff1e530c354"
],
"data": "000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3000000000000000000000000000000000000000000000000000000000001140700000000000000000000000000000000000000000000000000000000000115580000000000000000000000000000000000000000000000000000000000011558000000000000000000000000000000000000000000000000000000000001194000000000000000000000000000000000000000000000000000000002540be400"
},
{
"address": "d49b4e6133957c635ecbabfb67fd14fe74da52cd",
"topics": [
"5f86751734872d7179519ded4087b938c7f8b03dd3511225a5fc97a687701126",
"0000000000000000000000000000000000000000000000000000000000000001",
"000000000000000000000000dbcaeecd8d8c4284cb9d68ba5ecd2ff1e530c354"
],
"data": "57686f2077696c6c20626520746865204e424120416c6c2053746172204d565020696e20323031383f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000496e76616c6964000000000000000000000000000000000000000000000000004375727279000000000000000000000000000000000000000000000000000000447572616e7400000000000000000000000000000000000000000000000000004461766973000000000000000000000000000000000000000000000000000000416e7465746f6b6f756e6d706f000000000000000000000000000000000000005061756c000000000000000000000000000000000000000000000000000000005765737462726f6f6b000000000000000000000000000000000000000000000048617264656e00000000000000000000000000000000000000000000000000004a616d6573000000000000000000000000000000000000000000000000000000477265656e00000000000000000000000000000000000000000000000000000042616c6c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b"
}
]
}
]
log event 1: CentralizedOracleCreated
event in OracleFactory
{
"address": "18a4fd5add78af3deb2e3dd97a47f9dc008caf82",
"topics": [
"1e482c6081e57445e988bc379f3066a27d0db9fb8d6c9fb9aeff950cec4c1897",
"0000000000000000000000000000000000000000000000000000000000000001",
"0000000000000000000000004c8a625b09c9417e3777df9a7196dca47bba164b",
"000000000000000000000000dbcaeecd8d8c4284cb9d68ba5ecd2ff1e530c354"
],
"data": "000000000000000000000000000000000000000000000000000000000000000b00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3000000000000000000000000000000000000000000000000000000000001140700000000000000000000000000000000000000000000000000000000000115580000000000000000000000000000000000000000000000000000000000011558000000000000000000000000000000000000000000000000000000000001194000000000000000000000000000000000000000000000000000000002540be400"
}
# address: 18a4fd5add78af3deb2e3dd97a47f9dc008caf82 is OracleFactory
# topics[0]: 1e482c6081e57445e988bc379f3066a27d0db9fb8d6c9fb9aeff950cec4c1897 is CentralizedOracleCreated event
# topics[1]: 0000000000000000000000000000000000000000000000000000000000000001 is uint16 indexed _version
# topics[2]: 0000000000000000000000004c8a625b09c9417e3777df9a7196dca47bba164b is address indexed _contractAddress
# topics[3]: 000000000000000000000000dbcaeecd8d8c4284cb9d68ba5ecd2ff1e530c354 is address indexed _eventAddress
# data: uint8 _numOfResults, address _oracle, uint256 _bettingStartBlock, uint256 _bettingEndBlock, uint256 _resultSettingStartBlock, uint256 _resultSettingEndBlock, uint256 _consensusThreshold
log event 2: TopicCreated
event in EventFactory
{
"address": "d49b4e6133957c635ecbabfb67fd14fe74da52cd",
"topics": [
"5f86751734872d7179519ded4087b938c7f8b03dd3511225a5fc97a687701126",
"0000000000000000000000000000000000000000000000000000000000000001",
"000000000000000000000000dbcaeecd8d8c4284cb9d68ba5ecd2ff1e530c354"
],
"data": "57686f2077696c6c20626520746865204e424120416c6c2053746172204d565020696e20323031383f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000496e76616c6964000000000000000000000000000000000000000000000000004375727279000000000000000000000000000000000000000000000000000000447572616e7400000000000000000000000000000000000000000000000000004461766973000000000000000000000000000000000000000000000000000000416e7465746f6b6f756e6d706f000000000000000000000000000000000000005061756c000000000000000000000000000000000000000000000000000000005765737462726f6f6b000000000000000000000000000000000000000000000048617264656e00000000000000000000000000000000000000000000000000004a616d6573000000000000000000000000000000000000000000000000000000477265656e00000000000000000000000000000000000000000000000000000042616c6c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b"
}
# address: d49b4e6133957c635ecbabfb67fd14fe74da52cd is EventFactory
# topics[0]: 5f86751734872d7179519ded4087b938c7f8b03dd3511225a5fc97a687701126 is TopicCreated event
# topics[1]: 0000000000000000000000000000000000000000000000000000000000000001 is uint16 indexed _version
# topics[2]: 000000000000000000000000dbcaeecd8d8c4284cb9d68ba5ecd2ff1e530c354 is address indexed _topicAddress
# data: bytes32[10] _name, bytes32[10] _resultNames, uint8 _numOfResults
bet() Tx Receipt
Example CentralizedOracle.bet() transaction receipt
$ ./qtum-cli -testnet gettransactionreceipt 366953ec6096efe8e628da76551aae971059354f77618ed08f115f295967333a
[
{
"blockHash": "ae73b206fbfeeceabc97fa372eabc2e0fb0172184c1b1d33c32eb2c14138d92d",
"blockNumber": 65786,
"transactionHash": "366953ec6096efe8e628da76551aae971059354f77618ed08f115f295967333a",
"transactionIndex": 2,
"from": "17e7888aa7412a735f336d2f6d784caefabb6fa3",
"to": "d78f96ea55ad0c8a283b6d759f39cda34a7c5b10",
"cumulativeGasUsed": 138694,
"gasUsed": 138694,
"contractAddress": "d78f96ea55ad0c8a283b6d759f39cda34a7c5b10",
"log": [
{
"address": "d78f96ea55ad0c8a283b6d759f39cda34a7c5b10",
"topics": [
"999983c5b5c285890ab4b2b91f9a82d0ca95784c9b138bd37110ba06faa45f67",
"0000000000000000000000000000000000000000000000000000000000000000",
"000000000000000000000000d78f96ea55ad0c8a283b6d759f39cda34a7c5b10",
"00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3"
],
"data": "0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000001dcd6500"
}
]
}
]
log event 1: OracleResultVoted
in CentralizedOracle
{
"address": "d78f96ea55ad0c8a283b6d759f39cda34a7c5b10",
"topics": [
"999983c5b5c285890ab4b2b91f9a82d0ca95784c9b138bd37110ba06faa45f67",
"0000000000000000000000000000000000000000000000000000000000000000",
"000000000000000000000000d78f96ea55ad0c8a283b6d759f39cda34a7c5b10",
"00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3"
],
"data": "0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000001dcd6500"
}
# address: d78f96ea55ad0c8a283b6d759f39cda34a7c5b10 is CentralizedOracle
# topics[0]: 999983c5b5c285890ab4b2b91f9a82d0ca95784c9b138bd37110ba06faa45f67 is OracleResultVoted event
# topics[1]: 0000000000000000000000000000000000000000000000000000000000000000 is uint16 indexed _version
# topics[2]: 000000000000000000000000d78f96ea55ad0c8a283b6d759f39cda34a7c5b10 is address indexed _oracleAddress
# topics[3]: 00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3 is address indexed _participant
# data: uint8 _resultIndex, uint256 _votedAmount
setResult() Tx Receipt
Example CentralizedOracle.setResult() transaction receipt
$ ./qtum-cli -testnet gettransactionreceipt 1d498254fd672d6e8deaff9b92b95bcd9ab6a9591ff415b9f0b3be442fcc9392
[
{
"blockHash": "8d2d73644f9d5587265b75b0193406c508b614efe79c6e18baf3bb191e299389",
"blockNumber": 68109,
"transactionHash": "1d498254fd672d6e8deaff9b92b95bcd9ab6a9591ff415b9f0b3be442fcc9392",
"transactionIndex": 2,
"from": "17e7888aa7412a735f336d2f6d784caefabb6fa3",
"to": "cb012dc9d576f6a52617f0afeb2ff388f28ac3e8",
"cumulativeGasUsed": 930493,
"gasUsed": 930493,
"contractAddress": "cb012dc9d576f6a52617f0afeb2ff388f28ac3e8",
"log": [
{
"address": "f6177bc9812eeb531907621af6641a41133dea9e",
"topics": [
"ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3",
"0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6"
],
"data": "00000000000000000000000000000000000000000000000000000002540be400"
},
{
"address": "ce39131df7cd9965d2ea43dae6281bb1b7933705",
"topics": [
"30d17e534a780acbd9c3dcd3b61a67e5a39f28dd86aa1c323fb1b30d406608da",
"0000000000000000000000000000000000000000000000000000000000000000",
"00000000000000000000000009223575cc86e0c7d42f3b16f20fceb2caef828b",
"0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6"
],
"data": "000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010a7100000000000000000000000000000000000000000000000000000002540be400"
},
{
"address": "cb012dc9d576f6a52617f0afeb2ff388f28ac3e8",
"topics": [
"766d7bf9e9e8671204cd1da1b1b107d50247d2d1c389c552765262ee3afefb9b",
"0000000000000000000000000000000000000000000000000000000000000000",
"000000000000000000000000cb012dc9d576f6a52617f0afeb2ff388f28ac3e8"
],
"data": "0000000000000000000000000000000000000000000000000000000000000000"
}
]
}
]
log event 1: Transfer
event in BodhiToken
{
"address": "f6177bc9812eeb531907621af6641a41133dea9e",
"topics": [
"ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3",
"0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6"
],
"data": "00000000000000000000000000000000000000000000000000000002540be400"
}
# address: f6177bc9812eeb531907621af6641a41133dea9e is BodhiToken
# topics[0]: ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef is Transfer event
# topics[1]: 00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3 is address indexed _from
# topics[2]: 0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6 is address indexed _to
# data: uint256 _value
log event 2: DecentralizedOracleCreated
event in OracleFactory
{
"address": "ce39131df7cd9965d2ea43dae6281bb1b7933705",
"topics": [
"30d17e534a780acbd9c3dcd3b61a67e5a39f28dd86aa1c323fb1b30d406608da",
"0000000000000000000000000000000000000000000000000000000000000000",
"00000000000000000000000009223575cc86e0c7d42f3b16f20fceb2caef828b",
"0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6"
],
"data": "000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010a7100000000000000000000000000000000000000000000000000000002540be400"
}
# address: ce39131df7cd9965d2ea43dae6281bb1b7933705 is OracleFactory
# topics[0]: 30d17e534a780acbd9c3dcd3b61a67e5a39f28dd86aa1c323fb1b30d406608da is DecentralizedOracleCreated event
# topics[1]: 0000000000000000000000000000000000000000000000000000000000000000 is uint16 indexed _version
# topics[2]: 00000000000000000000000009223575cc86e0c7d42f3b16f20fceb2caef828b is address indexed _contractAddress
# topics[3]: 0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6 is address indexed _eventAddress
# data: uint8 _numOfResults, uint8 _lastResultIndex, uint256 _arbitrationEndBlock, uint256 _consensusThreshold
log event 3: OracleResultSet
event in CentralizedOracle
{
"address": "cb012dc9d576f6a52617f0afeb2ff388f28ac3e8",
"topics": [
"766d7bf9e9e8671204cd1da1b1b107d50247d2d1c389c552765262ee3afefb9b",
"0000000000000000000000000000000000000000000000000000000000000000",
"000000000000000000000000cb012dc9d576f6a52617f0afeb2ff388f28ac3e8"
],
"data": "0000000000000000000000000000000000000000000000000000000000000000"
}
# address: cb012dc9d576f6a52617f0afeb2ff388f28ac3e8 is CentralizedOracle
# topics[0]: 766d7bf9e9e8671204cd1da1b1b107d50247d2d1c389c552765262ee3afefb9b is OracleResultSet event
# topics[1]: 0000000000000000000000000000000000000000000000000000000000000000 is uint16 indexed _version
# topics[2]: 000000000000000000000000cb012dc9d576f6a52617f0afeb2ff388f28ac3e8 is address indexed _oracleAddress
# data: uint8 _resultIndex
voteResult() Under Threshold Tx Receipt
Example DecentralizedOracle.voteResult() transaction receipt under the consensus threshold.
$ ./qtum-cli -testnet gettransactionreceipt 3a5646ff578e9ca055d2b9296a539fb97ea4936a0a5f3a849ebd6eee69b9fe67
[
{
"blockHash": "c16cb160b1b38aaf35abae1da2cc3d577d1eb6f99b7cde4f7be7545e456142d5",
"blockNumber": 68120,
"transactionHash": "3a5646ff578e9ca055d2b9296a539fb97ea4936a0a5f3a849ebd6eee69b9fe67",
"transactionIndex": 2,
"from": "17e7888aa7412a735f336d2f6d784caefabb6fa3",
"to": "09223575cc86e0c7d42f3b16f20fceb2caef828b",
"cumulativeGasUsed": 127066,
"gasUsed": 127066,
"contractAddress": "09223575cc86e0c7d42f3b16f20fceb2caef828b",
"log": [
{
"address": "f6177bc9812eeb531907621af6641a41133dea9e",
"topics": [
"ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3",
"0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6"
],
"data": "0000000000000000000000000000000000000000000000000000000047868c00"
},
{
"address": "09223575cc86e0c7d42f3b16f20fceb2caef828b",
"topics": [
"999983c5b5c285890ab4b2b91f9a82d0ca95784c9b138bd37110ba06faa45f67",
"0000000000000000000000000000000000000000000000000000000000000000",
"00000000000000000000000009223575cc86e0c7d42f3b16f20fceb2caef828b",
"00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3"
],
"data": "00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000047868c00"
}
]
}
]
log event 1: Transfer
event in BodhiToken
{
"address": "f6177bc9812eeb531907621af6641a41133dea9e",
"topics": [
"ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3",
"0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6"
],
"data": "0000000000000000000000000000000000000000000000000000000047868c00"
}
# address: f6177bc9812eeb531907621af6641a41133dea9e is BodhiToken
# topics[0]: ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef is Transfer event
# topics[1]: 00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3 is address indexed _from
# topics[2]: 0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6 is address indexed _to
# data: uint256 _value
log event 2: OracleResultVoted
in DecentralizedOracle
{
"address": "09223575cc86e0c7d42f3b16f20fceb2caef828b",
"topics": [
"999983c5b5c285890ab4b2b91f9a82d0ca95784c9b138bd37110ba06faa45f67",
"0000000000000000000000000000000000000000000000000000000000000000",
"00000000000000000000000009223575cc86e0c7d42f3b16f20fceb2caef828b",
"00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3"
],
"data": "00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000047868c00"
}
# address: 09223575cc86e0c7d42f3b16f20fceb2caef828b is DecentralizedOracle
# topics[0]: 999983c5b5c285890ab4b2b91f9a82d0ca95784c9b138bd37110ba06faa45f67 is OracleResultVoted event
# topics[1]: 0000000000000000000000000000000000000000000000000000000000000000 is uint16 indexed _version
# topics[2]: 00000000000000000000000009223575cc86e0c7d42f3b16f20fceb2caef828b is address indexed _oracleAddress
# topics[3]: 00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3 is address indexed _participant
# data: uint8 _resultIndex, uint256 _votedAmount
voteResult() Over Threshold Tx Receipt
Example DecentralizedOracle.voteResult() transaction receipt that reaches the consensus threshold.
$ ./qtum-cli -testnet gettransactionreceipt e6ccb938a89cc7a724de47c1c4fd65b08fda222e84262c6552e1669317d93a4c
[
{
"blockHash": "83044d313af20e734fb49ff375834a1a6eb92ce97dbbfcf912f436a20d301d51",
"blockNumber": 68125,
"transactionHash": "e6ccb938a89cc7a724de47c1c4fd65b08fda222e84262c6552e1669317d93a4c",
"transactionIndex": 2,
"from": "17e7888aa7412a735f336d2f6d784caefabb6fa3",
"to": "09223575cc86e0c7d42f3b16f20fceb2caef828b",
"cumulativeGasUsed": 867625,
"gasUsed": 867625,
"contractAddress": "09223575cc86e0c7d42f3b16f20fceb2caef828b",
"log": [
{
"address": "f6177bc9812eeb531907621af6641a41133dea9e",
"topics": [
"ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3",
"0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6"
],
"data": "000000000000000000000000000000000000000000000000000000020c855800"
},
{
"address": "09223575cc86e0c7d42f3b16f20fceb2caef828b",
"topics": [
"999983c5b5c285890ab4b2b91f9a82d0ca95784c9b138bd37110ba06faa45f67",
"0000000000000000000000000000000000000000000000000000000000000000",
"00000000000000000000000009223575cc86e0c7d42f3b16f20fceb2caef828b",
"00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3"
],
"data": "0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000020c855800"
},
{
"address": "ce39131df7cd9965d2ea43dae6281bb1b7933705",
"topics": [
"30d17e534a780acbd9c3dcd3b61a67e5a39f28dd86aa1c323fb1b30d406608da",
"0000000000000000000000000000000000000000000000000000000000000000",
"00000000000000000000000097c781c612ad23f4049f253bd52ac2889855f2da",
"0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6"
],
"data": "000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000010a81000000000000000000000000000000000000000000000000000000028fa6ae00"
},
{
"address": "09223575cc86e0c7d42f3b16f20fceb2caef828b",
"topics": [
"766d7bf9e9e8671204cd1da1b1b107d50247d2d1c389c552765262ee3afefb9b",
"0000000000000000000000000000000000000000000000000000000000000000",
"00000000000000000000000009223575cc86e0c7d42f3b16f20fceb2caef828b"
],
"data": "0000000000000000000000000000000000000000000000000000000000000002"
}
]
}
]
log event 1: Transfer
event in BodhiToken
{
"address": "f6177bc9812eeb531907621af6641a41133dea9e",
"topics": [
"ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3",
"0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6"
],
"data": "000000000000000000000000000000000000000000000000000000020c855800"
}
# address: f6177bc9812eeb531907621af6641a41133dea9e is BodhiToken
# topics[0]: ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef is Transfer event
# topics[1]: 00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3 is address indexed _from
# topics[2]: 0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6 is address indexed _to
# data: uint256 _value
log event 2: OracleResultVoted
in DecentralizedOracle
{
"address": "09223575cc86e0c7d42f3b16f20fceb2caef828b",
"topics": [
"999983c5b5c285890ab4b2b91f9a82d0ca95784c9b138bd37110ba06faa45f67",
"0000000000000000000000000000000000000000000000000000000000000000",
"00000000000000000000000009223575cc86e0c7d42f3b16f20fceb2caef828b",
"00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3"
],
"data": "0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000020c855800"
}
# address: 09223575cc86e0c7d42f3b16f20fceb2caef828b is DecentralizedOracle
# topics[0]: 999983c5b5c285890ab4b2b91f9a82d0ca95784c9b138bd37110ba06faa45f67 is OracleResultVoted event
# topics[1]: 0000000000000000000000000000000000000000000000000000000000000000 is uint16 indexed _version
# topics[2]: 00000000000000000000000009223575cc86e0c7d42f3b16f20fceb2caef828b is address indexed _oracleAddress
# topics[3]: 00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3 is address indexed _participant
# data: uint8 _resultIndex, uint256 _votedAmount
log event 3: DecentralizedOracleCreated
in OracleFactory
{
"address": "ce39131df7cd9965d2ea43dae6281bb1b7933705",
"topics": [
"30d17e534a780acbd9c3dcd3b61a67e5a39f28dd86aa1c323fb1b30d406608da",
"0000000000000000000000000000000000000000000000000000000000000000",
"00000000000000000000000097c781c612ad23f4049f253bd52ac2889855f2da",
"0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6"
],
"data": "000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000010a81000000000000000000000000000000000000000000000000000000028fa6ae00"
}
# address: ce39131df7cd9965d2ea43dae6281bb1b7933705 is OracleFactory
# topics[0]: 30d17e534a780acbd9c3dcd3b61a67e5a39f28dd86aa1c323fb1b30d406608da is DecentralizedOracleCreated event
# topics[1]: 0000000000000000000000000000000000000000000000000000000000000000 is uint16 indexed _version
# topics[2]: 00000000000000000000000097c781c612ad23f4049f253bd52ac2889855f2da is address indexed _contractAddress
# topics[3]: 0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6 is address indexed _eventAddress
# data: uint8 _numOfResults, uint8 _lastResultIndex, uint256 _arbitrationEndBlock, uint256 _consensusThreshold
log event 4: OracleResultSet
in DecentralizedOracle
{
"address": "09223575cc86e0c7d42f3b16f20fceb2caef828b",
"topics": [
"766d7bf9e9e8671204cd1da1b1b107d50247d2d1c389c552765262ee3afefb9b",
"0000000000000000000000000000000000000000000000000000000000000000",
"00000000000000000000000009223575cc86e0c7d42f3b16f20fceb2caef828b"
],
"data": "0000000000000000000000000000000000000000000000000000000000000002"
}
# address: 09223575cc86e0c7d42f3b16f20fceb2caef828b is DecentralizedOracle
# topics[0]: 766d7bf9e9e8671204cd1da1b1b107d50247d2d1c389c552765262ee3afefb9b is OracleResultSet event
# topics[1]: 0000000000000000000000000000000000000000000000000000000000000000 is uint16 indexed _version
# topics[2]: 00000000000000000000000009223575cc86e0c7d42f3b16f20fceb2caef828b is address indexed _oracleAddress
# data: uint8 _resultIndex
finalizeResult() Tx Receipt
Example DecentralizedOracle.finalizeResult() transaction receipt
$ ./qtum-cli -testnet gettransactionreceipt e5ffaafc8cf5a239750075ac1866537bc3999561e2bbd7012bc80b24e0338cbb
[
{
"blockHash": "2aca546e5adb3a6e2ac38c5cba81f2ce40097a8982d8b6ef37795729048c48f3",
"blockNumber": 68245,
"transactionHash": "e5ffaafc8cf5a239750075ac1866537bc3999561e2bbd7012bc80b24e0338cbb",
"transactionIndex": 2,
"from": "17e7888aa7412a735f336d2f6d784caefabb6fa3",
"to": "97c781c612ad23f4049f253bd52ac2889855f2da",
"cumulativeGasUsed": 43448,
"gasUsed": 43448,
"contractAddress": "97c781c612ad23f4049f253bd52ac2889855f2da",
"log": [
{
"address": "0387da9a3e773b559ca0367c5929360e4a4294f6",
"topics": [
"14959b24f45a8f41b814b331ae09533db9d7e7962ca200e484f849a1fd1955aa",
"0000000000000000000000000000000000000000000000000000000000000000",
"0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6"
],
"data": "0000000000000000000000000000000000000000000000000000000000000002"
}
]
}
]
log event 1: FinalResultSet
event in TopicEvent
{
"address": "0387da9a3e773b559ca0367c5929360e4a4294f6",
"topics": [
"14959b24f45a8f41b814b331ae09533db9d7e7962ca200e484f849a1fd1955aa",
"0000000000000000000000000000000000000000000000000000000000000000",
"0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6"
],
"data": "0000000000000000000000000000000000000000000000000000000000000002"
}
# address: 0387da9a3e773b559ca0367c5929360e4a4294f6 is TopicEvent
# topics[0]: 14959b24f45a8f41b814b331ae09533db9d7e7962ca200e484f849a1fd1955aa is FinalResultSet event
# topics[1]: 0000000000000000000000000000000000000000000000000000000000000000 is uint16 indexed _version
# topics[2]: 0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6 is address indexed _eventAddress
# data: uint8 _finalResultIndex
withdrawWinnings() Tx Receipt
Example TopicEvent.withdrawWinnings() transaction receipt
$ ./qtum-cli -testnet gettransactionreceipt 127531304165ba5fbcdf41f4582f37bf74207cd2d83661a1eb01a425aa0e0047
[
{
"blockHash": "c8665533f1ee541a2203bcc17496aa79613ed44c2cf62ead62b4c57de3e6b93d",
"blockNumber": 68269,
"transactionHash": "127531304165ba5fbcdf41f4582f37bf74207cd2d83661a1eb01a425aa0e0047",
"transactionIndex": 2,
"from": "17e7888aa7412a735f336d2f6d784caefabb6fa3",
"to": "0387da9a3e773b559ca0367c5929360e4a4294f6",
"cumulativeGasUsed": 56572,
"gasUsed": 56572,
"contractAddress": "0387da9a3e773b559ca0367c5929360e4a4294f6",
"log": [
{
"address": "f6177bc9812eeb531907621af6641a41133dea9e",
"topics": [
"ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6",
"00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3"
],
"data": "00000000000000000000000000000000000000000000000000000004a817c800"
},
{
"address": "0387da9a3e773b559ca0367c5929360e4a4294f6",
"topics": [
"2b37430897e8d659983fc8ae7ab83ad5b3be5a7db7ea0add5706731c2395f550",
"0000000000000000000000000000000000000000000000000000000000000000",
"00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3"
],
"data": "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004a817c800"
}
]
}
]
log event 1: Transfer
event in BodhiToken
{
"address": "f6177bc9812eeb531907621af6641a41133dea9e",
"topics": [
"ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6",
"00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3"
],
"data": "00000000000000000000000000000000000000000000000000000004a817c800"
}
# address: f6177bc9812eeb531907621af6641a41133dea9e is BodhiToken
# topics[0]: ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef is Transfer event
# topics[1]: 0000000000000000000000000387da9a3e773b559ca0367c5929360e4a4294f6 is address indexed _from
# topics[2]: 00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3 is address indexed _to
# data: uint256 _value
log event 2: WinningsWithdrawn
event in TopicEvent
{
"address": "0387da9a3e773b559ca0367c5929360e4a4294f6",
"topics": [
"2b37430897e8d659983fc8ae7ab83ad5b3be5a7db7ea0add5706731c2395f550",
"0000000000000000000000000000000000000000000000000000000000000000",
"00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3"
],
"data": "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004a817c800"
}
# address: 0387da9a3e773b559ca0367c5929360e4a4294f6 is TopicEvent
# topics[0]: 2b37430897e8d659983fc8ae7ab83ad5b3be5a7db7ea0add5706731c2395f550 is WinningsWithdrawn event
# topics[1]: 0000000000000000000000000000000000000000000000000000000000000000 is uint16 indexed _version
# topics[2]: 00000000000000000000000017e7888aa7412a735f336d2f6d784caefabb6fa3 is address indexed _winner
# data: uint256 _qtumTokenWon, uint256 _botTokenWon