GET
https://api.stableyard.fi
/
sdk
/
v1
/
get-transaction
curl -X GET "https://api.stableyard.fi/sdk/v1/get-transaction?transactionId=tx_abc123xyz" \
  -H "Authorization: Basic $(echo -n $STABLEYARD_APP_ID:$STABLEYARD_APP_SECRET | base64)"
{
  "success": true,
  "data": {
    "id": "tx_abc123xyz",
    "type": "payment",
    "status": "completed",
    "amount": "100.00",
    "token": "USDC",
    "from": {
      "userId": "user_sender123",
      "paymentAddress": "alice@partner",
      "walletAddress": "0x1234..."
    },
    "to": {
      "userId": "user_recipient456",
      "paymentAddress": "merchant@partner",
      "walletAddress": "0x5678..."
    },
    "fee": "0.50",
    "chainId": 8453,
    "txHash": "0xabcdef1234567890...",
    "createdAt": "2024-01-15T10:30:00Z",
    "completedAt": "2024-01-15T10:30:15Z"
  },
  "requestId": "req_xyz789"
}
Retrieve complete details of a transaction by ID. Perfect for generating receipts, verifying webhook data, or customer support lookups.

Authentication

Authorization
string
required
Basic authentication. Value: Basic base64(STABLEYARD_APP_ID:STABLEYARD_APP_SECRET). Obtain your credentials from the Stableyard SDK.

Query Parameters

transactionId
string
required
The unique transaction identifier (e.g., tx_abc123xyz)

Response

success
boolean
Indicates if the request was successful
data
object
Transaction details
curl -X GET "https://api.stableyard.fi/sdk/v1/get-transaction?transactionId=tx_abc123xyz" \
  -H "Authorization: Basic $(echo -n $STABLEYARD_APP_ID:$STABLEYARD_APP_SECRET | base64)"
{
  "success": true,
  "data": {
    "id": "tx_abc123xyz",
    "type": "payment",
    "status": "completed",
    "amount": "100.00",
    "token": "USDC",
    "from": {
      "userId": "user_sender123",
      "paymentAddress": "alice@partner",
      "walletAddress": "0x1234..."
    },
    "to": {
      "userId": "user_recipient456",
      "paymentAddress": "merchant@partner",
      "walletAddress": "0x5678..."
    },
    "fee": "0.50",
    "chainId": 8453,
    "txHash": "0xabcdef1234567890...",
    "createdAt": "2024-01-15T10:30:00Z",
    "completedAt": "2024-01-15T10:30:15Z"
  },
  "requestId": "req_xyz789"
}

Use Cases

  • Receipt pages — Display transaction details to users after payment
  • Webhook verification — Confirm transaction status after receiving webhook
  • Customer support — Look up specific transactions for troubleshooting
  • Accounting — Fetch transaction details for reconciliation