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 build transaction?

Build Same or Cross chain transactions

PreviousHow to create transaction request?NextHow to resolve transaction request?

Last updated 1 year ago

Arrange Data

Arrange data in this format

{
    "receiver": "string",
    "transactionRequestId": number, // either transactionRequestId or receiver
    "payerConfig": {
        "payer": "string",
        "address": "string",
        "token": "string",
        "chain": number,
        "amount": number
    }
}

Call Build API

Dry Build Transaction

This API will not return the actual built transaction, but will return from, to addresses and respective blockchains, so developers can build their own transaction based on the resolved addresses

💻
✨
🤌
  • Arrange Data
  • Call Build API
  • POST/payment/build-transaction
  • Dry Build Transaction
  • POST/payment/build-transaction
post

Generate Transaction for Transaction Request

Authorizations
Body
transactionstringOptional
typestringOptional
Responses
200Success
application/json
400Error
application/json
500Error
application/json
post
POST /v1/payment/build-transaction HTTP/1.1
Host: staging-api.fetcch.xyz
secret-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 2

[]
{
  "status": 1,
  "data": [],
  "timestamp": "text"
}
post

Generate Transaction for Transaction Request

Authorizations
Body
transactionstringOptional
typestringOptional
Responses
200Success
application/json
400Error
application/json
500Error
application/json
post
POST /v1/payment/build-transaction HTTP/1.1
Host: staging-api.fetcch.xyz
secret-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 2

[]
{
  "status": 1,
  "data": [],
  "timestamp": "text"
}