Function Signature
Description
Retrieve full details about a specific yield transaction, including its status, hash, and metadata.Parameters
Returns
YieldXyzGetTransactionResponse - An object containing:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get details for a yield transaction.
Future<YieldXyzGetTransactionResponse> getTransaction(
String transactionId,
)
| Parameter | Type | Required | Description |
|---|---|---|---|
transactionId | String | Yes | The ID of the transaction to retrieve |
YieldXyzGetTransactionResponse - An object containing:
| Property | Type | Description |
|---|---|---|
transaction | YieldXyzActionTransaction | Full transaction details including status, hash, and metadata |
metadata | YieldXyzGetTransactionMetadata? | Response metadata |
error | String? | Error message, if any |
import 'package:portal_flutter/portal_flutter.dart';
final portal = Portal();
final response = await portal.yieldIntegrations.yieldxyz.getTransaction(
'transaction-id-123',
);
print('Status: ${response.transaction.status}');
print('Hash: ${response.transaction.hash}');
| Code | Description |
|---|---|
NOT_INITIALIZED | Portal was not initialized |
YIELD_FAILED | Failed to get yield transaction |
Was this page helpful?