zksync-force-exit-cli

2.0.0 • Public • Published

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:

  1. Target account inside zkSync is more that 24h old and does not have signing key set.
  2. 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 mainnet
Initiator account address: 0x2c1c73baA9557e56793728f4a273F64E53792c39
Initiator account balance: 0.1088118 ETH
Target account balances:
1678.9375 DAI
0.9785 ETH
49.5 USDC
Transaction fee: 0.01935 ETH
? Do you accept transaction fee? Yes
Transactions: 
sync-tx:e2d1dee2b15e31e61e96024af25d4dccc44978c0f5b8d74e7dc5b0572d08ca59
sync-tx:ce5035182dcab4d5b698e76e669c63f97faad23473ad9c1e7147890943243727
sync-tx:a43b8ebc16577e415c8ee7dd312a3c6bf4d9e6c03f25324474880b1d1eb62383
sync-tx:bda905c52bc2f1e9c1c21e5c5d9d925d57f6d197807dc77fbd22b1762cd8094f

Readme

Keywords

none

Package Sidebar

Install

npm i zksync-force-exit-cli

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

5.63 kB

Total Files

3

Last publish

Collaborators

  • dvush