Skip to main content
POST
Build a transaction that authorizes a delegate (agent key)

Body

application/json
trader
string
required

The trader granting access; must sign this transaction.

delegate
string
required

Address being authorized to trade on the trader's behalf (e.g. an agent/bot key).

expirySeconds
integer
required

Delegation expiry as a unix timestamp in SECONDS (not milliseconds). Must be in the future.

Required range: x >= 0

Response

Success envelope: ok is true and data carries the payload documented below.

ok
enum<boolean>
required

Always true on success.

Available options:
true
data
object
required

An unsigned EVM transaction. Sign it with the from key and broadcast it yourself, or submit the signed bytes via POST /v2/relay.