跳转到主要内容
GET
/
api
/
v1
/
transactions
/
{id}
Get Transaction
curl --request GET \
  --url https://api.agentwallex.com/api/v1/transactions/{id} \
  --header 'X-API-Key: <api-key>'
{
  "id": "<string>",
  "hash": "<string>",
  "agent_id": "<string>",
  "direction": "outbound",
  "type": "transfer",
  "from_address": "<string>",
  "to_address": "<string>",
  "amount": "<string>",
  "token": "<string>",
  "chain": "<string>",
  "fee": "<string>",
  "status": "pending",
  "memo": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}
获取单笔交易的完整详情,包括链上哈希、金额、代币、费用和当前状态。

路径参数

id
string
必填
唯一交易标识符(例如 tx_xyz789)。

响应

示例

curl -X GET https://api.agentwallex.com/api/v1/transactions/tx_xyz789 \
  -H "X-API-Key: awx_your_api_key"
Response
{
  "id": "tx_xyz789",
  "hash": "0xabc123def456789abc123def456789abc123def456789abc123def456789abcd",
  "agent_id": "agent_abc123",
  "direction": "outbound",
  "type": "transfer",
  "from_address": "0x1234567890abcdef1234567890abcdef12345678",
  "to_address": "0xabcdef1234567890abcdef1234567890abcdef12",
  "amount": "10.5",
  "token": "USDC",
  "chain": "eip155:84532",
  "fee": "0.001",
  "status": "confirmed",
  "memo": "service payment",
  "created_at": "2025-06-15T14:30:00Z"
}

授权

X-API-Key
string
header
必填

API key authentication. Keys are prefixed with awx_.

路径参数

id
string
必填

The unique transaction identifier (e.g., tx_xyz789).

响应

Transaction details.

An on-chain transaction submitted through an agent's wallet.

id
string

Unique transaction identifier.

hash
string

On-chain transaction hash (available after broadcast).

agent_id
string

Agent that initiated the transaction.

direction
enum<string>

Transaction direction.

可用选项:
outbound
type
enum<string>

Transaction type.

可用选项:
transfer
from_address
string

Sender address.

to_address
string

Recipient address.

amount
string

Amount sent as a decimal string.

token
string

Token symbol (e.g., USDC, USDT, ETH).

chain
string

CAIP-2 chain identifier.

fee
string

Network gas fee paid.

status
enum<string>

Transaction status.

可用选项:
pending,
confirmed,
failed
memo
string

Optional memo string.

created_at
string<date-time>

ISO 8601 creation timestamp.