Skip to main content
POST
Create Transaction
Envíe una nueva transacción a través de la billetera de un agente. La transacción pasa por el motor de políticas para validación, luego se firma mediante MPC y se difunde a la blockchain.

Cuerpo de la solicitud

string
requerido
El agente cuya billetera enviará la transacción.
string
requerido
Dirección de la transacción. Actualmente solo se soporta outbound.
string
requerido
Tipo de transacción. Valores: transfer.
string
Dirección del remitente. Si se omite, se usa la dirección de billetera del agente.
string
requerido
Dirección on-chain del destinatario.
string
requerido
Monto a enviar como cadena decimal (por ejemplo, "10.5").
string
requerido
Símbolo del token (por ejemplo, USDC, USDT, ETH).
string
requerido
Identificador de cadena CAIP-2 (por ejemplo, eip155:84532).
string
Memo o cadena de referencia opcional.

Respuesta

Ejemplo

Response

Autorizaciones

X-API-Key
string
header
requerido

API key authentication. Keys are prefixed with awx_.

Cuerpo

application/json
agent_id
string
requerido

The agent whose wallet will send the transaction.

direction
enum<string>
requerido

Transaction direction. Currently only outbound is supported.

Opciones disponibles:
outbound
type
enum<string>
requerido

Transaction type.

Opciones disponibles:
transfer
to_address
string
requerido

Recipient on-chain address.

amount
string
requerido

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

token
string
requerido

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

chain
string
requerido

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.

Respuesta

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.

Opciones disponibles:
outbound
type
enum<string>

Transaction type.

Opciones disponibles:
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.

Opciones disponibles:
pending,
confirmed,
failed
memo
string

Optional memo string.

created_at
string<date-time>

ISO 8601 creation timestamp.