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:

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:

Response:

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

Last updated

Was this helpful?