Test zkSync with TestSTORJ token

Transaction Fees for zkSync Withdraw
As you know the transaction fee depends on the current gas price. The following numbers are culculated in gas and you can multiply them with the current gas price.

Worst Case
Currently zkSync doesn’t allow us to pay transctions fees in STORJ. We are working on resolving that issues but we also want to be as transparent as possible. If zkSync disables or never enables fee payment in STORJ you would have to deposit ETH first. You will need a bunch of additional transactions to get started:

  1. Withdraw ETH from an exchange. You can’t Deposit directly. You have to send it to an address that you have the private keys for. Exchanges will work with a flat ETH fee of around 0.005 ETH. So lets calculate with around 50K gas here.
  2. Deposit ETH into zkSync. The transaction comes with a gas limit of 200K. Blockexplorer is showing that around 60K will be consumed.
  3. Activate zkSync account. 15K gas
  4. Withdraw STORJ to an exchange. You can send it directly to the deposit address of the exchange. I am unable to estimate the fee because it doesn’t scale with the gas price. So the best thing you can do is run this command (enter your address because that makes a difference):
curl -X POST -H 'Content-type: application/json'   -d '{
    "jsonrpc":"2.0",
    "id":1, "method": "get_tx_fee",
    "params": ["Withdraw", "0x80a52B7F26426d2b16578FC5f376c349F54772A7", "ETH"]
    }'   https://api.zksync.io/jsrpc | jq

Best Case

  1. Activate zkSync account. 15K gas
  2. Withdraw STORJ to an exchange. Same deal. You can send it directly to the deposit address. You have to run this script to estimate the fee (enter your address because that makes a difference):
curl -X POST -H 'Content-type: application/json'   -d '{
    "jsonrpc":"2.0",
    "id":1, "method": "get_tx_fee",
    "params": ["Withdraw", "0x80a52B7F26426d2b16578FC5f376c349F54772A7", "STORJ"]
    }'   https://api.zksync.io/jsrpc | jq

Update
STORJ fees have been enabled in production. Now we can count on the best case fees.

6 Likes