-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsplitsUnWrap.http
37 lines (32 loc) · 1.15 KB
/
splitsUnWrap.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
37
POST http://{{ASSET_MANTLE_CLIENT_HOST}}:{{ASSET_MANTLE_CLIENT_PORT}}/splits/unwrap
Content-Type: application/json
{
"type": "/xprt/splits/github.com/persistenceOne/persistenceSDK/modules/splits/internal/transactions/unwrap/transactionRequest",
"value": {
"baseReq": {
"from": "{{ACCOUNT_1_ADDRESS}}",
"chain_id": "{{CHAIN_ID}}"
},
"fromID":"test.MgVN53MovlOXmVrFOb6Rk8efEho=|Hi4ALDaDs923R0w64cr02MffbNA=",
"ownableID":"stake",
"split":"100"
}
}
> {%
client.test("Request executed successfully", function() {
client.assert(response.status === 200, "Response status is not 200");
});
client.global.set("splitsUnwrapTxHash", JSON.parse(JSON.stringify(response.body)).txhash)
%}
###
GET http://{{ASSET_MANTLE_CLIENT_HOST}}:{{ASSET_MANTLE_CLIENT_PORT}}/txs/{{splitsUnwrapTxHash}}
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");
});
%}
###