Skip to content

Instantly share code, notes, and snippets.

@jO-Osko
Last active January 24, 2024 14:58
Show Gist options
  • Save jO-Osko/c6ce3eb16396670003e9f79b956c7b6a to your computer and use it in GitHub Desktop.
Save jO-Osko/c6ce3eb16396670003e9f79b956c7b6a to your computer and use it in GitHub Desktop.
State connector response examples
{
"status": "VALID",
"response": {
"attestationType": "0x5061796d656e7400000000000000000000000000000000000000000000000000",
"sourceId": "0x7465737442544300000000000000000000000000000000000000000000000000",
"votingRound": "0",
"lowestUsedTimestamp": "1706098397",
"requestBody": {
"transactionId": "0x5035326fa81a2a7bd6761e59cf80da986d72ba955f58ad8a660c498898e992f7",
"inUtxo": "1",
"utxo": "1"
},
"responseBody": {
"blockNumber": "2575544",
"blockTimestamp": "1706098397",
"sourceAddressHash": "0x6790e8fadb1d4128688db7fe2060a67710150aef9f1c689939e2f60f612bce4b",
"receivingAddressHash": "0xe2b83ab7a429a104548d2a5c9309eed54cf07d0e40589aaf463fdce99921ad16",
"intendedReceivingAddressHash": "0xe2b83ab7a429a104548d2a5c9309eed54cf07d0e40589aaf463fdce99921ad16",
"standardPaymentReference": "0x0000000000000000000000000000000000000000000000000000000000000000",
"spentAmount": "850",
"intendedSpentAmount": "850",
"receivedAmount": "3810000",
"intendedReceivedAmount": "3810000",
"oneToOne": false,
"status": "0"
}
}
}
{
"status": "VALID",
"response": {
"attestationType": "0x45564d5472616e73616374696f6e000000000000000000000000000000000000",
"sourceId": "0x7465737445544800000000000000000000000000000000000000000000000000",
"votingRound": "0",
"lowestUsedTimestamp": "1706010660",
"requestBody": {
"transactionHash": "0x8ad57d1f07de459cf6b765610349e9cc05ad9983bec0048c09264dfc95ba5240",
"requiredConfirmations": "1",
"provideInput": true,
"listEvents": true,
"logIndices": []
},
"responseBody": {
"blockNumber": "5139028",
"timestamp": "1706010660",
"sourceAddress": "0x9310d9EEAe23b19e366E81d2D95F507d24aB8DBc",
"isDeployment": false,
"receivingAddress": "0x962B018Dbfd784D0A721BD224b74234F2355e62b",
"value": "0",
"input": "0xa9059cbb0000000000000000000000005b29d7424fbd7b17bd6822a9dde871d2b28284e80000000000000000000000000000000000000000000000056bc75e2d63100000",
"status": "1",
"events": [
{
"logIndex": "190",
"emitterAddress": "0x962B018Dbfd784D0A721BD224b74234F2355e62b",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x000000000000000000000000f29ff96aaea6c9a1fba851f74737f3c069d4f1a9"
],
"data": "0x000000000000000000000000000000000000000000000002b5e3af16b1880000",
"removed": false
},
{
"logIndex": "191",
"emitterAddress": "0x962B018Dbfd784D0A721BD224b74234F2355e62b",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000009310d9eeae23b19e366e81d2d95f507d24ab8dbc",
"0x0000000000000000000000005b29d7424fbd7b17bd6822a9dde871d2b28284e8"
],
"data": "0x0000000000000000000000000000000000000000000000056bc75e2d63100000",
"removed": false
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment