From 4572b7c0a723def259a6af4d2e510fab9eddddfd Mon Sep 17 00:00:00 2001 From: Dhiyaneshwaran Date: Mon, 2 Oct 2023 22:04:10 +0530 Subject: [PATCH 1/2] Update api-tatum.yaml --- http/token-spray/api-tatum.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/http/token-spray/api-tatum.yaml b/http/token-spray/api-tatum.yaml index 4562aa752a..123c2b86ca 100644 --- a/http/token-spray/api-tatum.yaml +++ b/http/token-spray/api-tatum.yaml @@ -20,11 +20,21 @@ http: Content-Type: application/json body: "{\"jsonrpc\":\"2.0\",\"method\":\"web3_clientVersion\",\"params\":[ ],\"id\":1}" + matchers-condition: and matchers: - type: word part: body words: - - '"id":' - '"result":' - '"jsonrpc":' + - 'Geth' condition: and + + - type: word + part: header + words: + - 'application/json' + + - type: status + status: + - 200 From 8ccee371e61afc251ee866400a695eaea08a82f3 Mon Sep 17 00:00:00 2001 From: Dhiyaneshwaran Date: Mon, 2 Oct 2023 22:28:04 +0530 Subject: [PATCH 2/2] change endpoint to fix fp --- http/token-spray/api-tatum.yaml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/http/token-spray/api-tatum.yaml b/http/token-spray/api-tatum.yaml index 123c2b86ca..43b2ed60c1 100644 --- a/http/token-spray/api-tatum.yaml +++ b/http/token-spray/api-tatum.yaml @@ -13,21 +13,20 @@ info: self-contained: true http: - - method: POST - path: - - "https://api-eu1.tatum.io/v3/blockchain/node/ETH/{{token}}" - headers: - Content-Type: application/json - body: "{\"jsonrpc\":\"2.0\",\"method\":\"web3_clientVersion\",\"params\":[ ],\"id\":1}" + - raw: + - | + GET https://api.tatum.io/v3/tatum/version HTTP/1.1 + Host: api.tatum.io + x-api-key: {{token}} matchers-condition: and matchers: - type: word part: body words: - - '"result":' - - '"jsonrpc":' - - 'Geth' + - '"baseCommit":' + - '"planName":' + - '"creditLimit":' condition: and - type: word