v1

latestOpenAPI 3.1.02026-07-1310041.0 KB
Routing

Get OP hook

Generates OP hook data required for certain cross-chain routes that involve Optimistic bridge withdrawals with ERC-20 token conversion. When the Compute Route response includes required_op_hook: true, you must call this endpoint to obtain the hook payload before generating transaction messages.

Pass the returned hook data to the Generate Transaction endpoint (POST /v2/fungible/msgs) in the signed_op_hook field after signing it.

post/op-hook

Request body

source_addressstring required

Sender address on the source chain.

source_asset_chain_idstring required

Source chain ID.

source_asset_denomstring required

Source asset denomination.

dest_addressstring required

Recipient address on the destination chain.

dest_asset_chain_idstring required

Destination chain ID.

dest_asset_denomstring required

Destination asset denomination.

Response

Successful response

chain_idstring

Chain ID where the hook messages should be executed.

hookobject[]

Array of EVM messages that form the OP hook payload.