How to resolve transaction request?
Resolve a payment request
Once transaction is done onchain, you need to update transaction hash for that transaction request
Soon, it will be an automated process, as our workers will be able to find and match transactions for transaction requests
Arrange Data
Arrange transaction request in the format
{
"id": number,
"fromChain": number,
"fromToken": "string",
"transactionHash": "string",
"executed": boolean
}
Using API
patch
Resolve Transaction Request
Authorizations
Body
idnumberOptional
payerstringOptional
receiverstringOptional
labelstringOptional
messagestringOptional
signaturestring | nullableOptional
executedAtstringOptional
requestedAtstringOptional
Responses
200Success
application/json
400Error
application/json
500Error
application/json
patch
PATCH /v1/transaction-request HTTP/1.1
Host: staging-api.fetcch.xyz
secret-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 146
{
"id": 1,
"payer": "text",
"receiver": "text",
"actions": [],
"label": "text",
"message": "text",
"signature": "text",
"executedAt": "text",
"requestedAt": "text"
}
{
"status": 1,
"data": {
"id": 1,
"payer": "text",
"receiver": "text",
"actions": [],
"label": "text",
"message": "text",
"signature": "text",
"executedAt": "text",
"requestedAt": "text"
},
"timestamp": "text"
}
Using SDK
For Quickstart
const updatedData = {}
const request = await fetcch.request.resolve(updatedData)
Last updated