Apply for matched order
Use this method to apply if another side hasn't done it yet.
You can check if they applied by the transaction field in applyTips. If it'sfalse
, you can apply for it; otherwise, you are the finalizer and should use the Confirm transaction method.
- METHOD: POST
- PATH:
/api/orders/apply-order
Request:
{
token: string;
orderData: {
id: string;
connected_order_id: string;
hex_raw_proposal: string;
};
}
Explanation of Fields:
- to get
hex_raw_proposal
create ionic swap proposal via Zano wallet API;- hex_raw_proposal - Hex-encoded proposal raw data(encrypted with common shared key). Includes half-created transaction template and some extra information that would be needed counterparty to finialize and sign transaction
Response:
{
success: boolean;
data?: string // error message
}