UXLINK
CommunityMediumGithub
UXLINK
UXLINK
  • Introduction
  • UXLINK Social Growth Layer
  • TECHNOLOGY
    • 🦝One Account (Account Abstraction)
    • β›½One Gas (Universal Gas: $UXLINK)
    • Social Growth Protocols
    • πŸ’±Chain Abstraction
  • API & SDK
    • πŸ›ΊUXLINK Auth
      • Basic authentication
      • UXLINK OAuth 2.0
      • Ingestion API
    • UXLINK Account (Coming Soon)
      • Quick start
      • Ingestion API
    • πŸ₯‚Social Growth Protocols
    • 🩰Smart Contracts & Security
      • UXLINK Official Wallet Addresses
      • Contracts
      • Contracts-Audit-Report
  • UXLINK Ecosystem
    • ✈️AIRDROP 2049
    • πŸ₯‚INVITE mini app
    • πŸ—ΊοΈRoadmap
  • White Paper
    • πŸ“°White Paper
  • Tutorial
    • UXLINK Terms and Conditions of Use
      • List of Prohibited Countries and Regions
    • UXLINK Task Tutorial
      • UXLINK Task Tutorial on Binance Web3 Wallet
      • Binance Web3 Wallet x UXLINK Airdrop Campaign FAQ
      • UXLINK Airdrop CS Channel
      • How to clear Binance App’s cache?
      • How to check UXLINK NFTs in my wallet?
    • Find CEX UID and Deposit address
      • How to Find OKX UID & Deposit Address
      • How to Find GATE UID & Deposit Address
      • How to Find GATE UID & Deposit Address - Ton Network
      • How to Find bitget UID & Deposit Address
  • Changelog
    • πŸ’¬Changelog
  • Troubleshooting
    • ⁉️FAQ
  • Announcement
    • Announcements
    • UXLINK Supply Distribution
Powered by GitBook
On this page
  • Ingestion API
  • 1. Initiating a Transaction
  • 2. Querying Transaction Result
  • 3. Querying Account Balance

Was this helpful?

  1. API & SDK
  2. UXLINK Account (Coming Soon)

Ingestion API

Ingestion API

1. Initiating a Transaction

POST /uxlink/account/v1/transactions

Request Parameters:

Parameter
Type
Required
Description

executeData

Object

Required

Data to be executed, including contract address, execution method, and parameters

Request Body Example:

executeData: {
  to: "0x.....", // Address of the business contract to be called
  data: "...", // Encoded string containing the function name to be executed in the contract and the arguments passed to this function. Method for creating executeData will be provided below.
},

Response:

{
    "success": true,
    "msg": "ok",
    "code": 200,
    "data": {
        "orderId": "1233", // ID of this transaction, which can be used to query the transaction result.
    }
}

2. Querying Transaction Result

POST /uxlink/account/v1/transactions/query

Request Parameters:

Parameter
Type
Required
Description

transactionId

string

Required

ID returned upon submitting execution data

Response:

// Success:
{
    "transactionHash": "tx_00123456789",
    "status": "completed",
    "amount": 100.00,
    "currency": "USD",
    "recipientAccount": "1234567890",
    "description": "Payment for order #1234",
    "createdAt": "2024-11-17T12:00:00Z",
    "completedAt": "2024-11-17T12:05:00Z",
    "metadata": {
        "orderId": "1234",
        "customerNote": "Thanks for your service!"
    }
   
}

// Error:
{
  "errorCode": "TRANSACTION_NOT_FOUND",
  "message": "The transaction ID 'tx_00123456789' does not exist."
}

3. Querying Account Balance

POST /uxlink/account/v1/balance

Request Parameters:

Parameter
Type
Required
Description

accountId

string

Yes

The unique identifier of the account.

currency

string

No

The currency to query balance in (default to primary currency).

Request Body:

{
    "accountId": "1234567890",
    "currency": [], // ["USDT",""]
}

Response:

{
    data: [
        {
            "accountId": "1234567890",
            "balance": 5000.75,
            "currency": "USD",
            "lastUpdated": "2024-11-17T12:00:00Z"
        },
        {
            "accountId": "0987654321",
            "balance": 250.00,
            "currency": "USD",
            "lastUpdated": "2024-11-17T11:30:00Z"
        }
        ...
    ]
}

These adjustments provide a more professional and structured presentation of the API endpoints for developers working on the project.

PreviousQuick startNextSocial Growth Protocols

Last updated 6 months ago

Was this helpful?