-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmetasReveal.http
35 lines (30 loc) · 1.07 KB
/
metasReveal.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
POST http://{{ASSET_MANTLE_CLIENT_HOST}}:{{ASSET_MANTLE_CLIENT_PORT}}/metas/reveal
Content-Type: application/json
{
"type": "/xprt/metas/github.com/persistenceOne/persistenceSDK/modules/metas/internal/transactions/reveal/transactionRequest",
"value": {
"baseReq": {
"from": "{{ACCOUNT_1_ADDRESS}}",
"chain_id": "{{CHAIN_ID}}"
},
"metaFact":"S|PERSISTENCE_NUB_ID"
}
}
> {%
client.test("Request executed successfully", function() {
client.assert(response.status === 200, "Response status is not 200");
});
client.global.set("metasRevealTxHash", JSON.parse(JSON.stringify(response.body)).txhash)
%}
###
GET http://{{ASSET_MANTLE_CLIENT_HOST}}:{{ASSET_MANTLE_CLIENT_PORT}}/txs/{{metasRevealTxHash}}
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");
});
%}
###