Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [zksync]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
33 views

zkSync Operators

I am trying to understand, from the zkSync documentation, which operators participate in the transaction lifecycle on zkSync. I have seen the following defined on the docs: The sequencer: bundles and ...
Ciara's user avatar
  • 45
3 votes
1 answer
33 views

How do zkSync Blocks Work?

I am reading the zkSync documentation and seeing "L1 Batches" and "L1 Rollup Blocks." Are they the same thing? When a batch of transactions is sent to Ethereum as an L1 batch, how ...
Ciara's user avatar
  • 45
1 vote
1 answer
68 views

How does the `isSystem` flag work for zkSync projects?

I'm working on account abstraction in zkSync and I'm running into this flag being set in my hardhat.config.js: isSystem: true According to the docs, this flag: For the sake of security, both ...
Patrick Collins's user avatar
1 vote
1 answer
21 views

What's the difference between zkSync `system contracts` and EVM precompiles?

According to the zkSync docs While most of the primitive EVM opcodes can be supported out of the box (i.e. zero-value calls, addition/multiplication/memory/storage management, etc), some of the ...
Patrick Collins's user avatar
0 votes
1 answer
8 views

zkSync NonceHolder | Is it a smart contract that essentially holds a mapping of all addresses -> all nonces?

According to the zkSync documentation [The] NonceHolder serves as storage for nonces for our accounts. Does this mean it literally has every single address/account and a mapping of all their nonces?
Patrick Collins's user avatar
0 votes
0 answers
27 views

zksync tokens missing

I want to tell a little story. about 2 years ago. I experienced an unfortunate incident which resulted in my cell phone being stolen by someone. After 2 years, I found a note with my wallet passphrase ...
lazuardi pur's user avatar
1 vote
0 answers
12 views

Does `call` opcode panic if less size data is returned?

I was reading the zksync documentation and found the following in the differences section here For calls, you specify a memory slice to write the return data to, e.g. out and outsize arguments for ...
Neo's user avatar
  • 103
0 votes
1 answer
14 views

Are zk (zero knowledge) blockchains private?

I've been seeing all this information around zero-knowledge blockchains or layer twos like zkSync. Is my information private on these chains/L2s?
Patrick Collins's user avatar
0 votes
1 answer
22 views

How to put a zero knowledge verifier contract onto zkSync?

I want to place a zero-knowledge verifier contract on zkSync to verify some functions. For example: x^2 + x + 5 = 245 The answer is 15, but I don't want people to see others transactions and copy it. ...
Patrick Collins's user avatar
0 votes
1 answer
43 views

Error in adding liquidity to UniswapV2 in zklink nova

I have deployed Uniswap V2 factory and router contracts on zklink nova mainnet Factory - https://etherscan.deth.net/address/0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f Router - https://etherscan.deth....
Abhishek Kumar's user avatar
1 vote
1 answer
24 views

Can't withdraw funds from a Contract

I've deployed a contract for education purposes and used it. The contract address: 0x3Fe77339866AB535Fe4f8D1F2Ee1a1a49658AeBf You can see the contract code on zkscan but i will put the relevant part ...
Ugur Bukcuoglu's user avatar
0 votes
0 answers
103 views

Methods allowed by RPCs providers for contracts Solidity Event listeners at etherjs

GM everyone. I'll appreciate any help to know how is the correct form of consume events in a backend listener of EVM solidity contracts, and if can share your favorite Rpcs Providers like infura,...
Gman's user avatar
  • 1
2 votes
1 answer
19 views

Deploy a contract to Ethereum via zkSync?

AFAIK When I deploy to skSync it "bridges" it to Ethereum. Does that mean I get the Ethereum contract address and can start communicating with it?
shaharsol's user avatar
  • 561
0 votes
2 answers
51 views

Inability to bridge back from Arb to zksync with zksync wallet on Gnosis safe

I bridge about 0.13eth from zksync eth to ARB using jumper bridge. As you know, zksync users use Arb while bridging in and out. However I can't bridge out back because the feature is not possible yet ...
Fakojo Oluwatobiloba 's user avatar
2 votes
0 answers
32 views

How to deploy Tornado Cash Hasher contract to ZkSync network

I am going to deploy Tornado Cash contract to ZKSync network. In the Tornado Cash constructor, it takes an argument: Ihasher _hasher; where the Ihasher is: interface IHasher { function MiMCSponge(...
CHM's user avatar
  • 21
0 votes
1 answer
51 views

ZkSync Sepolia support?

we are currently developing a solution to tokenize billions of dollar of real world asset on ZkSync Era and we need add support for multi-signature scheme. I can see here that there is support for ...
dymayday's user avatar
1 vote
1 answer
196 views

What is the equalievent of transfer() in zksync

I have a payable nft mint contract that send ETH fee to owner, when calling mint() function I recieve Error function_selector = 0x, data = 0x tx -> https://goerli.explorer.zksync.io/tx/...
aekiratli's user avatar
  • 121
0 votes
1 answer
84 views

Send transaction only with signature

As far as I know, Metamask does not allow to sign transaction without broadcasting it to the network. So I can not generate a transaction on my server and pass it to the frontend that will sign me the ...
airled's user avatar
  • 101
1 vote
1 answer
86 views

Property 'zkUpgrades' does not exist on type 'HardhatRuntimeEnvironment'.ts(2339)

I have a test file for testing an upgradable smart contract on zkSync by looking at the docs here. I'm getting a typescript error on this line await hre.zkUpgrades.deployProxy(deployer.zkWallet, ...
stuckoverflow's user avatar
0 votes
0 answers
27 views

Dockerized zkSync testing environment image fails with error Solidity 0.8.19 is not fully supported yet

I'm setting up a dockerized local zksync testing environment according to this guide here. When I run the ./start.sh command, it runs all three images but the local-setup-zksync-1 image exits with ...
stuckoverflow's user avatar
0 votes
0 answers
31 views

trying to perform a batch transaction for finally obtaining the smart account address

well i was trying to batch three deploy transactions into one, by creating another smart contract for it. note: these contracts are deployed for creating smart account wallet (aa) and for calling the ...
Gautham Krishhna's user avatar
1 vote
1 answer
297 views

how do I get bytecode hash of a smart contract?

Below is a snippet of code I am using to compute the hashed bytecode of a contract, however this doesn't seem to work. This hash is passed to the create function of the zkSync Era ContractDeployer.sol ...
Gautham Krishhna's user avatar
0 votes
0 answers
163 views

zkSync hardhat, I can't connect different address to contract

I have some problems when try to test my smart contract in zkSync with hardhat, I can't connect different address to contract like in ethers.js: contract.connect(otherAddress).someFunction(); when I ...
Ivan's user avatar
  • 1
0 votes
0 answers
279 views

Contract deploy problem in Zksync era network

Createfactory and transparentproxy have 2 contracts. I am facing some problems while deploying on zksync era network. 1- I'm using ethers version 5.7.2. When I deploy like this, I get this error "...
Cronos's user avatar
  • 1
1 vote
1 answer
110 views

ETH from zkSYNK sent to wETH contract adress on Ethereum

Really curious if i could do something to retrive it. I was on th WHOP website trying to pay for something and i didn t notice that i was on zkSYNK network and not on ethereum like i should have been. ...
Lex Luthor's user avatar
0 votes
1 answer
199 views

Any way to view unverified contract's source code on Zksync era?

Is there any way to view source code of a unverified contract on Zksync era?
yinitialize's user avatar
5 votes
3 answers
3k views

How to deploy smart contract on zkSync Era Testnet using Remix and MetaMask

I want to use the zkSync Era Testnet to do some testing with different smart contracts. I am using Remix with MetaMask as the injected provider to deploy the contract on the testnet. The contract ...
Abel's user avatar
  • 63
0 votes
1 answer
28 views

Can I use zkSync contracts in other EVM compatible chains?

I want to deploy a Paymaster in Polygon. I have followed this tutorial but want to deploy to Mumbai instead of zkSync Testnet. How can I achieve this?
Falcon Stakepool's user avatar
0 votes
1 answer
73 views

Zksync USDC Events

I'm trying to interpret the tx https://explorer.zksync.io/tx/0x97ab638ce8646f058c9fdafa1d30357a4ed9ecb2c5cb0976e60d897a425ffe83#eventlog First log event's data value is 426912250000000. The USDC ...
att's user avatar
  • 165
2 votes
0 answers
17 views

Difference between zk-rollups and nocust-zkp

What is the fundamental difference between ZK-Rollup and Nocust-ZKP? Does the data availability problem still persist in Nocust-ZKP? After going through zk-sync, I felt it might be fundamentally ...
Subhra Mazumdar's user avatar
0 votes
2 answers
225 views

Differences between on zkEVM and zkSync ERA

Are polygon zkEVM and zkSync ERA somehow different? If yes then how?
Hacek 's user avatar
  • 657
2 votes
2 answers
224 views

Reading events from layer 2 blockchains

I'm planning to query a tx using a tx hash on Ethereum and get the events/logs to find out the recipient and sender of the ETH. Is it possible to do so for L2 blockchains like Optimism, ZkSync, ...
att's user avatar
  • 165
3 votes
1 answer
497 views

zkSync-Era Paymaster, trying to access the contract method that is being called

Here is a basic example, where I'm calling a method on myContract and using a Paymaster: await myContract.myMethod( myArgs, { customData: { paymasterParams: paymasterParams, ...
blindChicken's user avatar
2 votes
2 answers
2k views

How to transfer dai for eth with syncswap api with ethers.js

Hi,I had referred to this article and now I want to test swap dai to eth with syncswap api. But I also get the insufficient funds error, actually, there's enough eth and dai in the wallet. //balances ...
SylorHuang's user avatar
6 votes
1 answer
2k views

Failed to get EIP-1559 fees error when deploying to ZkEVM polygon using Foundry

I have this error Failed to get EIP-1559 fees after running this command forge script script/BricksCore.s.sol:BricksCoreScript --rpc-url $POLYGON_ZKEVM_RPC_URL --broadcast My script : contract ...
noro meb's user avatar
  • 358
1 vote
1 answer
47 views

Help, my usdcs are lost in genosis safe wallet :)

My USDCs were in the Genosys safe wallet, and I connected the Genosys to Orbiter and bridged from Optimism to Zksync. But now I found out that Ginosys wallet doesn't have ZkSync network 😐 I mean, ...
ehsan h's user avatar
  • 11
5 votes
2 answers
198 views

zK learning, don't know where to start

I am thinking of learning zK (don't know where to start). If someone with experience could point to the best resources to learn starting from 0, that would be awesome. It exists already advanced ...
donoso.eth's user avatar
  • 1,493
1 vote
1 answer
553 views

Compiler error: Stack too deep

I am getting this error when trying to deploy my smart contract using zkSync but on a different chain (Polygon Mumbai): CompilerError: Stack too deep. Try compiling with `--via-ir` (cli) or the ...
Falcon Stakepool's user avatar
1 vote
1 answer
100 views

Compilation is successful but getting bytecode = "0x"

I am trying to compile this very simple smart contract but I am getting its bytecode = "0x": // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "@openzeppelin/...
Falcon Stakepool's user avatar
1 vote
1 answer
2k views

Error when trying to deploy a smart contract using deploy-zksync

I am getting the following error after running yarn hardhat deploy-zksync: Running deploy script for the Greeter contract An unexpected error occurred: Error: Bytecode length in 32-byte words must be ...
Falcon Stakepool's user avatar
0 votes
1 answer
369 views

What is the format of the private key required to deploy using deploy-zksync?

I am trying to deploy a very basic smart contract using zkSync. This is the code, from they docs: deploy.ts import { Wallet, utils } from "zksync-web3"; import * as ethers from "ethers&...
Falcon Stakepool's user avatar
0 votes
2 answers
133 views

Is it possible to use zkSync in Polygon Mumbai?

I am setting up a project using zkSync and I am seeing that, in the hardhat.config.ts file, the supported network is zkSyncTestnet. hardhat.config.ts import "@matterlabs/hardhat-zksync-deploy&...
Falcon Stakepool's user avatar
2 votes
0 answers
51 views

Decrypting a message using smart contract

Is this possible to send a message from address A to address B on Ethereum (or another type of blockchain), and it is so that address B can't open the message, unless a smart contract permits it ...
m0j1's user avatar
  • 177
1 vote
0 answers
127 views

How to code a zk roll-up in Solidity smart contracts?

Zksync is a protocol that recently enabled its layer-2 technology to directly admit layer-1 Solidity code for deploying on Zksync. Aren't zero-knowledge proofs difficult to code using Solidity ...
user610620's user avatar
  • 1,528
4 votes
4 answers
895 views

Account Abstraction still requires EOA signatures?

I was under the impression that with account abstraction, I would be able to directly initiate smart contract calls without an EOA. However, after reading through zkSync's Account Abstraction example, ...
Eric's user avatar
  • 43
0 votes
3 answers
7k views

How to mint Dai to Goerli testnet wallet?

Trying to get lots of Dai (need like 300,000+) on Goerli to transfer to zksync alpha testnet. When I try to just directly mint to my wallet's address on etherscan using the contract web interface, ...
Fiattarone's user avatar
4 votes
2 answers
60 views

Is there ever going to be some kind of parallelism in Ethereum or any L2?

Suppose I have a long array of values: x = [1, 2, 3, ..., N] # shape [N, ] array and a function def f(x): return x ** 2 then I'd do something like (similar to python's multiprocessing) with ...
H. Arponen's user avatar
1 vote
0 answers
40 views

Is zk rollup unsecure?

We all know that zk rollup uses zk-snark to prove the state transition is valid. But, now consider that if a malicious relayer creats a proof using incomplete transactions in a batch (e.g. relayer ...
shiiu akiyama's user avatar
1 vote
0 answers
58 views

What part of zk blockchain is private?

What part of a ZK blockchain is private? Let's say for example starknet or zksync, both of them use ZK technology. If I execute a transaction and I send a native coin (none of them have it yet) ...
Filip Laurentiu's user avatar
3 votes
0 answers
63 views

What is the role of a circuit in zero knowledge rollups

I am a student currently pursuing my bachelors degree in technology, for my final year project. I am trying to create a zk-rollup poc for nfts, I have came across different implementation of rollup ...
Srivatsan's user avatar