Recover Starknet Funds
Use the Starkli CLI tool to recover Starknet funds.
To execute transactions, follow these procedures:
- Install Starkli.
- Set up the tool to work with your recovered vault. Run:
starkli account fetch your_*vault_address* --output starknet_account --network mainnet
- Now, you will be able to sign arbitrary transactions from your address using your recovered private key.
For example, to sign and push a transaction transferring 100 wei to the0x1234
address, run this command:
starkli invoke 0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7
transfer 0x1234 100 0 --private-key recovered_private_key --account starknet_account --network mainnet
For more information, see Invoking contracts.
Notes
- In the previous example,
0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7
is the contract address of ETH. Replace it for transferring a different token.- The amount is passed in as two values:
100 0
. Learn more here.- Fees are paid in ETH by default, so make sure your address holds ETH; alternatively use a flag to pay the fees with STRK. Learn more here.
Updated 20 days ago