Expand description
§alloy-zksync
Implementation of the ZKsync network support for the alloy ecosystem.
§Overview
This crate is designed to be a plug-in for alloy. If you’re not familiar with it, the great entrypoint would be the alloy book and examples.
alloy-zksync project has two main goals:
- Everything that works in
alloyshould work inalloy-zksyncas well, even if the underlying implementation of functionality is different. - ZKsync-specific features are supported.
Main entrypoints are:
ZksyncProviderandzksync_provider. The provider is used whenever you need to access the node API.ZksyncWallet. The wallet represents a provider with an account attached, and thus can be used to sign transactions.Zksyncnetwork: a network definition. Most likely you won’t need to interact with it directly, but the Network trait implementation is useful to look at if you want to see main data types.
§Examples
Check out the examples directory for more examples.