Fetcch
  • 🟠What is Fetcch?
  • 🚅Pull Payments Layer
    • 🔭Overview
    • ❓How it works?
      • 👮Specification
      • 🎒How is it stored?
      • 🌊Pull Payments Flow
    • 🔐Security
      • 🎒Storage
      • ⛓️Cross Chain
    • ⚔️Use Pull Payments
  • 🆔Universal Identity Layer
    • 🔭Overview
    • ❓How it works?
      • 👮Specifications
      • 🎒How is it stored?
      • 🌊Identity Flow
    • 🔐Security
      • 🎒Storage
    • ⚔️Use Fetcch Identity
  • 🏗️Data Structures
    • 📖Address Books
      • 🔭Overview
      • 🎒Storage
  • 💻How to integrate?
    • ✈️Quickstart
    • ⛷️SDK Quickstart
    • 🔓Blockchain
    • ✨Guides
      • 🙇Authentication
      • 😁Identity
        • How to resolve identity?
        • How to create identity?
        • How to update identity?
      • 🤌Transaction Requests
        • How to get transaction requests?
        • How to create transaction request?
        • How to build transaction?
        • How to resolve transaction request?
      • 🫂Address Books
        • How to get address books?
        • How to create address books?
        • How to share address book?
        • How to accept address book request?
      • ⚙️Utility
        • How to sign messages?
          • EVM
          • Solana
          • Aptos
          • EIP-6492 Compatible Signatures
        • How to generate & verify proofs for identity?
    • 📖API Reference
      • ☢️Troubleshooting Errors
      • 🟢OpenAPI Specs
  • 🐧Open Source
    • 📸@fetcch/resolve-names
  • 🥶FAQs
    • FAQs
Powered by GitBook
On this page
  1. How to integrate?
  2. Guides
  3. Transaction Requests

How to resolve transaction request?

Resolve a payment request

PreviousHow to build transaction?NextAddress Books

Last updated 1 year ago

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

Using SDK

const updatedData = {}

const request = await fetcch.request.resolve(updatedData)

For

💻
✨
🤌
Quickstart
  • Arrange Data
  • Using API
  • PATCH/transaction-request
  • Using SDK
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"
}