Force withdraw from zkSync
If you can't set signing key for your account in the zkSync but you would like to withdraw from L2 to L1 you can do it using force withdraw with this tool.
For this you need:
- Target account inside zkSync is more that 24h old and does not have signing key set.
- Initiator account with funds in the zkSync (to pay fees) with known private key.
Usage
- -k - private key of the initiator account
- -a - address of the target account
- -t - tokens to withdraw from L2 to L1 from the target account
- -f - token to pay fee, fee will be subtracted from initiator account balance
- -n - network (mainnet, rinkeby, ropsten)
node bin/index.js -k $INITIATOR_PRIVATE_KEY -a 0xc2EBDCabf77976dA4DD3b80BeDe87bF72C59118f -t DAI,ETH,USDC -f ETH -n mainnetInitiator account address: 0x2c1c73baA9557e56793728f4a273F64E53792c39Initiator account balance: 0.1088118 ETHTarget account balances:1678.9375 DAI0.9785 ETH49.5 USDCTransaction fee: 0.01935 ETH? Do you accept transaction fee? YesTransactions: sync-tx:e2d1dee2b15e31e61e96024af25d4dccc44978c0f5b8d74e7dc5b0572d08ca59sync-tx:ce5035182dcab4d5b698e76e669c63f97faad23473ad9c1e7147890943243727sync-tx:a43b8ebc16577e415c8ee7dd312a3c6bf4d9e6c03f25324474880b1d1eb62383sync-tx:bda905c52bc2f1e9c1c21e5c5d9d925d57f6d197807dc77fbd22b1762cd8094f