Skip to content

Latest commit

 

History

History
44 lines (36 loc) · 1.01 KB

4-forced-exit.md

File metadata and controls

44 lines (36 loc) · 1.01 KB

type ForcedExitBuilder

constructor

/**
* @param {number} to_chain_id
* @param {number} initiator_account_id
* @param {number} initiator_sub_account_id
* @param {number} target_sub_account_id
* @param {string} target
* @param {number} l2_source_token
* @param {number} l1_target_token
* @param {string} exit_amount
* @param {number} initiator_nonce
* @param {boolean} withdraw_to_l1
* @param {number | undefined} [ts]
*/
ForcedExitBuilder(to_chain_id, initiator_account_id, initiator_sub_account_id, target_sub_account_id, target, l2_source_token, l1_target_token, exit_amount, initiator_nonce, withdraw_to_l1, ts)

type ForcedExit

ForcedExit transaction type.

constructor

/**
* @param {ForcedExitBuilder} builder
*/
newForcedExit(builder)

func sign

/**
* @param {ZkLinkSigner} signer
* @returns {any}
*/
sign(signer)

Sign transaction with given ZkLinkSigner