Skip to main content
POST
Create Transaction
Gửi giao dịch mới thông qua ví tác nhân. Giao dịch đi qua công cụ chính sách để xác thực, sau đó được ký qua MPC và phát sóng lên blockchain.

Nội dung Yêu cầu

string
bắt buộc
Tác nhân có ví sẽ gửi giao dịch.
string
bắt buộc
Hướng giao dịch. Hiện chỉ hỗ trợ outbound.
string
bắt buộc
Loại giao dịch. Giá trị: transfer.
string
Địa chỉ người gửi. Nếu bỏ qua, địa chỉ ví tác nhân được sử dụng.
string
bắt buộc
Địa chỉ on-chain người nhận.
string
bắt buộc
Số tiền gửi dưới dạng chuỗi thập phân (ví dụ: "10.5").
string
bắt buộc
Ký hiệu token (ví dụ: USDC, USDT, ETH).
string
bắt buộc
Định danh chuỗi CAIP-2 (ví dụ: eip155:84532).
string
Ghi chú hoặc chuỗi tham chiếu tùy chọn.

Phản hồi

Ví dụ

Response

Ủy quyền

X-API-Key
string
header
bắt buộc

API key authentication. Keys are prefixed with awx_.

Nội dung

application/json
agent_id
string
bắt buộc

The agent whose wallet will send the transaction.

direction
enum<string>
bắt buộc

Transaction direction. Currently only outbound is supported.

Tùy chọn có sẵn:
outbound
type
enum<string>
bắt buộc

Transaction type.

Tùy chọn có sẵn:
transfer
to_address
string
bắt buộc

Recipient on-chain address.

amount
string
bắt buộc

Amount to send as a decimal string (e.g., "10.5").

token
string
bắt buộc

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

chain
string
bắt buộc

CAIP-2 chain identifier (e.g., eip155:84532).

from_address
string

Sender address. If omitted, the agent's wallet address is used.

memo
string

Optional memo or reference string.

Phản hồi

Transaction created and submitted.

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.

Tùy chọn có sẵn:
outbound
type
enum<string>

Transaction type.

Tùy chọn có sẵn:
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.

Tùy chọn có sẵn:
pending,
confirmed,
failed
memo
string

Optional memo string.

created_at
string<date-time>

ISO 8601 creation timestamp.