How to pay a relative low zkSync activation fee

By the way, you can always check yourself.

1 Like

I assume “PubKey” is the activation fee, “Withdaw” is sending tokens from L2 to L1 and “Transfer” is sending tokens from L2 to L2, right?

Do you have an example of how to get the activation fee from the API? When I try Pubkey instead of Withdraw from the example in the docs, i get

Invalid params: unknown variant `PubKey`, expected one of `Withdraw`, `FastWithdraw`, `Transfer`, `ChangePubKey`, `ForcedExit`, `MintNFT`, `WithdrawNFT`, `FastWithdrawNFT`, `Swap`.

The link zkSync Lite API Reference Overview | zkSync Lite Documentation to the zSync Api is broken btw. I guess Web3 JSON-RPC API | Welcome to our Docs - All information you need about zkSync and ZK Stack is the right link. But to be honest, I don’t understand any of the things written there.

Perhaps this one:

however, I do not know what is supported method, see https://docs.zksync.io/api/v0.1/

The documentation is missing out one important fact. You need to call it this way:

curl -X POST -H 'Content-type: application/json'   -d '{
     "jsonrpc":"2.0",
     "id":1, "method": "get_tx_fee",
     "params": [{"ChangePubKey": "ECDSA"}, "0x80a52B7F26426d2b16578FC5f376c349F54772A7", "STORJ"]
     }'   https://api.zksync.io/jsrpc | jq
2 Likes

You can also check the fees here (zksync specific block explorer): https://zkscan.io/

4 Likes