Matches
Retrieve matches' details
The following fields can be queried to retrieve all matches data:
Query
Response
query {
matches {
... on EventsTriggerMatch {
createdAt
UUID
trigger {
UUID
type
isActive
name
}
decoded {
method {
name
}
arguments
}
log {
address
data
topics
}
block {
number
hash
timestamp
}
transaction {
hash
}
}
... on TransactionsTriggerMatch {
createdAt
UUID
trigger {
UUID
type
isActive
}
decoded {
arguments
}
block {
number
hash
timestamp
}
transaction {
hash
nonce
from
to
gas
gasPrice
}
}
... on ContractsTriggerMatch {
createdAt
UUID
trigger {
UUID
type
isActive
... on ContractsTrigger {
isTriggered
}
}
contract {
address
}
method {
name
}
returnedValues {
matched
all
}
block {
number
hash
timestamp
}
}
}
}
{
"data": {
"matches": [
{
"createdAt": "2019-12-19 13:18:00.535264+00",
"UUID": "f2019251-e690-4507-8e46-19fe2f6d03f4",
"trigger": {
"UUID": "c9cbcb30-927b-4d96-a323-cc48f51bf189",
"type": "EventsTrigger",
"isActive": true,
"name": "WAE MATTEO - Address"
},
"decoded": {
"method": {
"name": "WhitelistAdded"
},
"arguments": null
},
"log": {
"address": "0xf92c1ad75005e6436b4ee84e88cb23ed8a290988",
"data": "0x",
"topics": [
"0x4790a4adb426ca2345bb5108f6e454eae852a7bf687544cd66a7270dff3a41d6",
"0x00000000000000000000000021718c0fbd10900565fa57c76e1862cd3f6a4d8e"
]
},
"block": {
"number": 9130755,
"hash": "0xc46145c2c8548b102e8bc8cee7b07af811eff8549a70e34911f00af34b09cf17",
"timestamp": 1576761111
},
"transaction": {
"hash": "0x0021fac188954bff67de011e237236576622be8594ff04b40c2849705c92a9ea"
}
},
{
"createdAt": "2020-01-06 02:14:17.615362+00",
"UUID": "1d2ee04f-a881-4fe4-8426-f2aca00f244b",
"trigger": {
"UUID": "0f96098d-e505-47d7-a60b-452681523ca9",
"type": "ContractsTrigger",
"isActive": true,
"isTriggered": true
},
"contract": {
"address": "0x09cabec1ead1c0ba254b09efb3ee13841712be14"
},
"method": {
"name": "getTokenToEthOutputPrice"
},
"returnedValues": {
"matched": [
"141"
],
"all": [
"141"
]
},
"block": {
"number": 9224072,
"hash": "0xabc7a6683030a1c547ec5f2e0f8fec06501fb5fafd94284b786a24733798a3f7",
"timestamp": 1578276714
}
},
{
"createdAt": "2019-12-20 14:20:03.366152+00",
"UUID": "34d26740-cbb9-4715-aa55-7d2ab2313762",
"trigger": {
"UUID": "6228392f-b670-4abb-be71-4b9d9d103c80",
"type": "TransactionsTrigger",
"isActive": true
},
"decoded": {
"arguments": [
{
"rs": [
[
159,
246,
185,
96,
248,
102,
184,
108,
215,
163,
231,
253,
188,
144,
5,
36,
189,
250,
192,
219,
189,
173,
180,
63,
211,
117,
145,
199,
24,
229,
12,
75
],
[
28,
219,
210,
114,
131,
114,
20,
139,
207,
72,
120,
78,
172,
186,
249,
155,
52,
169,
244,
135,
44,
9,
18,
7,
178,
130,
203,
120,
2,
150,
57,
70
],
[
201,
180,
239,
36,
46,
249,
115,
228,
11,
162,
133,
173,
62,
31,
103,
12,
27,
152,
35,
116,
204,
71,
225,
123,
24,
133,
158,
237,
113,
55,
11,
172
],
[
5,
197,
154,
115,
64,
52,
100,
17,
140,
0,
87,
164,
80,
227,
18,
7,
76,
76,
53,
202,
86,
70,
199,
8,
55,
123,
233,
33,
211,
117,
1,
135
]
],
"tradeAddresses": [
"0x4a220e6096b25eadb88358cb44068a3248254675",
"0x0000000000000000000000000000000000000000",
"0x342260fdea9d0cf248adceacecf1581537c0ae6f",
"0xf97167c973212270cd44c3e7d7b54fd984257a6a"
],
"tradeValues": [
283246500000000000000,
8099997953046032000,
10000,
39090050500,
283246500000000000000,
6,
0,
2188888936623081
],
"v": [
28,
27
]
}
]
},
"block": {
"number": 9135963,
"hash": "0xcdf9274f10c0220cecbc89ffb9fd638b2fa60536cf0b1b35e4e695e6ea743a83",
"timestamp": 1576851382
},
"transaction": {
"hash": "0x2a9154dd979b6acbf9839c5ae0aebc73054384fee3c4b8bf7262de909a4ba89e",
"nonce": 4498693,
"from": "0xa7a7899d944fe658c4b0a1803bab2f490bd3849e",
"to": "0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208",
"gas": 400000,
"gasPrice": 9000000000
}
},
]
}
}
Using filters you can retrieve a single match by
UUID,
name
or by triggerUUID
.Query
Response
query getMatches {
matches(filter: {triggerUUID: {eq: "c9cbcb30-927b-4d96-a323-cc48f51bf189"}}) {
... on EventsTriggerMatch {
createdAt
UUID
trigger {
UUID
type
isActive
name
}
decoded {
method {
name
}
arguments
}
log {
address
data
topics
}
block {
number
hash
timestamp
}
transaction {
hash
}
}
... on TransactionsTriggerMatch {
createdAt
UUID
trigger {
UUID
type
isActive
}
decoded {
arguments
}
block {
number
hash
timestamp
}
transaction {
hash
nonce
from
to
gas
gasPrice
}
}
... on ContractsTriggerMatch {
createdAt
UUID
trigger {
UUID
type
isActive
... on ContractsTrigger {
isTriggered
}
}
contract {
address
}
method {
name
}
returnedValues {
matched
all
}
block {
number
hash
timestamp
}
}
}
}
{
"data": {
"matches": [
{
"createdAt": "2019-12-19 13:18:00.535264+00",
"UUID": "f2019251-e690-4507-8e46-19fe2f6d03f4",
"trigger": {
"UUID": "c9cbcb30-927b-4d96-a323-cc48f51bf189",
"type": "EventsTrigger",
"isActive": true,
"name": "WAE MATTEO - Address"
},
"decoded": {
"method": {
"name": "WhitelistAdded"
},
"arguments": null
},
"log": {
"address": "0xf92c1ad75005e6436b4ee84e88cb23ed8a290988",
"data": "0x",
"topics": [
"0x4790a4adb426ca2345bb5108f6e454eae852a7bf687544cd66a7270dff3a41d6",
"0x00000000000000000000000021718c0fbd10900565fa57c76e1862cd3f6a4d8e"
]
},
"block": {
"number": 9130755,
"hash": "0xc46145c2c8548b102e8bc8cee7b07af811eff8549a70e34911f00af34b09cf17",
"timestamp": 1576761111
},
"transaction": {
"hash": "0x0021fac188954bff67de011e237236576622be8594ff04b40c2849705c92a9ea"
}
}
]
}
}
Last modified 3yr ago