-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathordersCancel.http
36 lines (31 loc) · 1.38 KB
/
ordersCancel.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
POST http://{{ASSET_MANTLE_CLIENT_HOST}}:{{ASSET_MANTLE_CLIENT_PORT}}/orders/cancel
Content-Type: application/json
{
"type": "/xprt/orders/github.com/persistenceOne/persistenceSDK/modules/orders/internal/transactions/cancel/transactionRequest",
"value": {
"baseReq": {
"from": "{{ACCOUNT_1_ADDRESS}}",
"chain_id": "{{CHAIN_ID}}"
},
"fromID": "test.XTJ0wkxGAeMlEqfw3Dx9oR6ZlIE=|TSoEUuNKNf_lmLlUFABkO4ziyKk=",
"orderID":"test.Arm2oecLPTkvNNGwI7tO7rmoNK8=*test.zZN_aVdLtKcK4556f5i6IwFEm7k=|9mK1kvuzV4pXiEvhC6Iy3oDPn-M=*test.zZN_aVdLtKcK4556f5i6IwFEm7k=|3yJjxpvCGdIQK2XylzRMRJEQaFI=*test.XTJ0wkxGAeMlEqfw3Dx9oR6ZlIE=|TSoEUuNKNf_lmLlUFABkO4ziyKk=*h-mgcOVdM_puXrTLqfTT5ZWaeJk="
}
}
> {%
client.test("Request executed successfully", function() {
client.assert(response.status === 200, "Response status is not 200");
});
client.global.set("ordersCancelTxHash", JSON.parse(JSON.stringify(response.body)).txhash)
%}
###
GET http://{{ASSET_MANTLE_CLIENT_HOST}}:{{ASSET_MANTLE_CLIENT_PORT}}/txs/{{ordersCancelTxHash}}
Accept: application/json
> {%
client.test("Request executed successfully", function() {
client.assert(response.status === 200, "Response status is not 200");
});
client.test("Response Code Check", function() {
client.assert(!JSON.parse(JSON.stringify(response.body)).hasOwnProperty("code") , "Response Code is not 0");
});
%}
###