Skip to main content
POST
public/decode_action

Body

application/json
action_type
enum<string>
required

Which action layout the bytes are meant to be.

Available options:
order,
rfq_maker,
rfq_taker,
transfer,
external_transfer,
withdrawal,
liquidation,
set_session_key,
update_whitelisted_recipients,
delete_subaccount,
vault_deposit,
vault_withdraw,
vault_cancel,
vault_create,
vault_mint_shares,
vault_burn_shares,
vault_force_burn
encoded_data
string
required

ABI-encoded action data (the Action.data bytes), 0x-prefixed hex. Same value the *_debug routes return as encoded_data.

Response

Success

action_type
enum<string>
required

Echoed back so a batch of probes stays attributable.

Available options:
order,
rfq_maker,
rfq_taker,
transfer,
external_transfer,
withdrawal,
liquidation,
set_session_key,
update_whitelisted_recipients,
delete_subaccount,
vault_deposit,
vault_withdraw,
vault_cancel,
vault_create,
vault_mint_shares,
vault_burn_shares,
vault_force_burn
decoded
any
required

The decoded fields. Decimal values are at the protocol's 1e12 scale — the wire carries 1e18, and the codec rejects anything that does not convert exactly.