Add Transaction Hash
curl --request POST \
--url https://testapi.kravata.co/api/addhash/ramps \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"rampId": "{{rampId}}",
"number": "<transaction hash>"
}
'import requests
url = "https://testapi.kravata.co/api/addhash/ramps"
payload = {
"rampId": "{{rampId}}",
"number": "<transaction hash>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({rampId: '{{rampId}}', number: '<transaction hash>'})
};
fetch('https://testapi.kravata.co/api/addhash/ramps', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));trueRamp Orders
Add Transaction Hash
Post /AddHash
By consuming this endpoint you will be able to add the Hash ID corresponding to the order/ ramp created.
Request
| Field | Type | Required | Description |
|---|---|---|---|
| Authorization | Header | Yes | The access token, valid for 5 minutes, is used to authenticate requests to other endpoints. |
| clientId | Query | Yes | Include your assigned ID in the URL, obtainable through the Get infoClient endpoint. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| rampId | String | Yes | The ID of the Off Ramp for which you made the funds transfer. |
| number | String | Yes | The Hash ID generated when you transferred your asset. Please include only the ID, not the complete URL. |
The
clientIdquery parameter is required: requests without it are rejected with 401.
Response
Returns true. The ramp moves to status received and Kravata starts verifying the transfer. The hash is rejected if the ramp is not pending/waitingfounds, has expired, or the hash was already used.
POST
/
api
/
addhash
/
ramps
Add Transaction Hash
curl --request POST \
--url https://testapi.kravata.co/api/addhash/ramps \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"rampId": "{{rampId}}",
"number": "<transaction hash>"
}
'import requests
url = "https://testapi.kravata.co/api/addhash/ramps"
payload = {
"rampId": "{{rampId}}",
"number": "<transaction hash>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({rampId: '{{rampId}}', number: '<transaction hash>'})
};
fetch('https://testapi.kravata.co/api/addhash/ramps', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));true
