Skip to main content
POST
Create Transaction
透過代理的錢包提交新交易。交易通過策略引擎進行驗證,然後透過 MPC 簽名並廣播至區塊鏈。

請求主體

string
必填
將發送交易的代理。
string
必填
交易方向。目前僅支援 outbound
string
必填
交易類型。值:transfer
string
發送者地址。若省略,則使用代理的錢包地址。
string
必填
收款方的鏈上地址。
string
必填
以十進位字串表示的發送金額(例如 "10.5")。
string
必填
代幣符號(例如 USDCUSDTETH)。
string
必填
CAIP-2 鏈識別碼(例如 eip155:84532)。
string
可選的備註或參考字串。

回應

範例

Response

授權

X-API-Key
string
header
必填

API key authentication. Keys are prefixed with awx_.

主體

application/json
agent_id
string
必填

The agent whose wallet will send the transaction.

direction
enum<string>
必填

Transaction direction. Currently only outbound is supported.

可用選項:
outbound
type
enum<string>
必填

Transaction type.

可用選項:
transfer
to_address
string
必填

Recipient on-chain address.

amount
string
必填

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

token
string
必填

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

chain
string
必填

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.

回應

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.

可用選項:
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.