@@ -110,3 +110,129 @@ curl -X DELETE \
110
110
```
111
111
112
112
> The above command returns only HTTP code (204)
113
+
114
+
115
+ ## Webhook request
116
+
117
+ Represents the request body from our server.
118
+
119
+ Possible attribute values.
120
+
121
+ ** event.event_type:**
122
+ UPDATE
123
+ CREATE
124
+ DELETE
125
+ PENDING
126
+ QUEUED
127
+ FAILED
128
+ SUCCESS
129
+
130
+ ** transaction.type:**
131
+ receive
132
+ send
133
+ sendraw
134
+ send_token
135
+
136
+ > Webhook for ETH
137
+
138
+ ``` json
139
+ {
140
+ "account" : {
141
+ "id" : " 1f02413b-c08e-1eef-b3b7-f6b07c136d01"
142
+ },
143
+ "transaction" : {
144
+ "hash" : " 0x976d866a7e5cb9f0106fd74f48b4ebf9f484067cf786a541b012099e28fbd2a6" ,
145
+ "position" : null ,
146
+ "from_address" : " 0x235cE7409D8Dfc72D0B6377761dc9c20e3967198" ,
147
+ "to_address" : " 0x8cbbbf681ee97e4bf86fa54ae171d7efa108d867" ,
148
+ "value" : 2133990000000000 ,
149
+ "gas_price" : 7000000000 ,
150
+ "nonce" : 0 ,
151
+ "input_data" : " 0x" ,
152
+ "type" : " receive"
153
+ },
154
+ "event" : {
155
+ "event_type" : " SUCCESS" ,
156
+ "event_group" : " TX"
157
+ },
158
+ "block_number" : 5981239 ,
159
+ "confirmation" : 0
160
+ }
161
+ ```
162
+
163
+ > Webhook for TOKEN
164
+
165
+ ``` json
166
+ {
167
+ "account" : {
168
+ "id" : " d18108eb-bee5-4b41-be5b-e6156a496147"
169
+ },
170
+ "transaction" : {
171
+ "hash" : " 0x8abb8862899c19c04b7ce517d54cd6a5aabd5858683be854a2f634e3dd9990a0" ,
172
+ "position" : 0 ,
173
+ "from_address" : " 0x274F3c32C90517975e29Dfc209a23f315c1e5Fc7" ,
174
+ "to_address" : " 0xefbd0c505ad422134e6cd1a8af63b9c70ed538e9" ,
175
+ "value" : 1.0085e+21 ,
176
+ "gas_price" : 50000000000 ,
177
+ "nonce" : 134458 ,
178
+ "input_data" : " 0xa9059cbb000000000000000000000000efbd0c505ad422134e6cd1a8af63b9c70ed538e9000000000000000000000000000000000000000000000036abbfbebced720000" ,
179
+ "type" : " receive" ,
180
+ "currency" : " ABX"
181
+ },
182
+ "event" : {
183
+ "event_type" : " UPDATE" ,
184
+ "event_group" : " TX"
185
+ },
186
+ "block_number" : 6937111 ,
187
+ "confirmation" : 3
188
+ }
189
+ ```
190
+
191
+ > Webhook for BTC
192
+
193
+ ``` json
194
+ {
195
+ "event" : {
196
+ "event_type" : " CREATE" ,
197
+ "event_group" : " TX"
198
+ },
199
+ "block_number" : null ,
200
+ "account" : {
201
+ "id" : " 1af71414-bdf1-4a16-9b41-133f5b6b9ae1"
202
+ },
203
+ "confirmation" : 0 ,
204
+ "transaction" : {
205
+ "ins" : [
206
+ {
207
+ "script" : " 47304402207a8e712b394f5abb98f2f3c710babe8dbc7b2da7e57aa3dfcbbed08807b90c2c022055cd332d047cce7eeff4bd8b319b90a5899811d22f8e7f8fa32fda07a91e95d80121035a9347865719fe1f7aae59dcb19f6eb70a471808d5424a41013177dbab92b26a" ,
208
+ "address" : " 13jrfpw3tRppxNrfaBxmWtrKnAG6EEteUa" ,
209
+ "position" : 0 ,
210
+ "previous_hash" : " c917b524fc65a378e872bcc65c86c751246d5be7d4708f4e299a0026cfc89645"
211
+ },
212
+ {
213
+ "script" : " 473044022002724d5e5216296bd34e94afc617bbd12258efd2efac2e94da6655c843f4d8e4022047ada12af99bb0fa31a6f2dc7022fb804aa52dbd96e6e63e4fa3b29dbcbf5e780121036a06338df7b1af63e76e7f46af27874762ca5d87cd9be8cb21043a57d7a42b08" ,
214
+ "address" : " 14sQ2ERZaeEUHXZ94ZAbjuKbPaeSuisDYp" ,
215
+ "position" : 0 ,
216
+ "previous_hash" : " 131091397a2c3ae643af545d8aa5f9f2409b78aef3914bb9f9100d288b11205e"
217
+ }
218
+ ],
219
+ "outs" : [
220
+ {
221
+ "position" : 0 ,
222
+ "address" : " 32ZVTU6oHMBqMemArPaQuXtV2zroMqZ2to" ,
223
+ "script" : " a914098bc818d1e632a9bf9023d49ff5f50ad19d54d987" ,
224
+ "value" : 808035
225
+ },
226
+ {
227
+ "position" : 1 ,
228
+ "address" : " 18SJDwJKYpnKppedyBZpURgFrjHqveEGf1" ,
229
+ "script" : " 76a9145191a816dec73e10c4de7dbaebba8d8785be1d7d88ac" ,
230
+ "value" : 2028090
231
+ }
232
+ ],
233
+ "hash" : " 964755b5fdff53807a9df96a33bfd5b7af832beb827d5117f181a08ede0fba7c" ,
234
+ "lock_time" : 538363 ,
235
+ "position" : null
236
+ }
237
+ }
238
+ ```
0 commit comments