-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathidentitiesUnprovision.http
36 lines (31 loc) · 1.22 KB
/
identitiesUnprovision.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}}/identities/unprovision
Content-Type: application/json
{
"type": "/xprt/identities/github.com/persistenceOne/persistenceSDK/modules/identities/internal/transactions/unprovision/transactionRequest",
"value": {
"baseReq": {
"from": "{{ACCOUNT_1_ADDRESS}}",
"chain_id": "{{CHAIN_ID}}"
},
"identityID":"test.XTJ0wkxGAeMlEqfw3Dx9oR6ZlIE=|IWlaJpSQCEHboqlKYYyzLK_Sq2k=",
"to":"cosmos17e8msgelqjfjcusgln55zxkpr4vhfl73yhwzwp"
}
}
> {%
client.test("Request executed successfully", function() {
client.assert(response.status === 200, "Response status is not 200");
});
client.global.set("identitiesUnprovisionTxHash", JSON.parse(JSON.stringify(response.body)).txhash)
%}
###
GET http://{{ASSET_MANTLE_CLIENT_HOST}}:{{ASSET_MANTLE_CLIENT_PORT}}/txs/{{identitiesUnprovisionTxHash}}
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");
});
%}
###