Developer Resources
Documentation
Comprehensive guides, tutorials, and API references to help you build on Wonder.
Explore DocsDeveloper Grants
Funding opportunities for developers building innovative applications on Wonder.
Apply for GrantsStart Building Today
Deploy your first smart contract on Wonder in minutes with our quickstart guide.
Quickstart Guide# Install Wonder SDK
npm install @wonderchain/sdk zksync-ethers
Development Tools
JavaScript SDK
Build web applications and Node.js services with our JavaScript SDK.
// Install the SDK
npm install @wonderchain/sdk zksync-ethers
// Initialize the client
import { Configuration, NetworkApi } from "@wonderchain/sdk";
const apiHost = 'https://api.wonderchain.org';
const config = new Configuration({
basePath: apiHost,
});
const networkApi = new NetworkApi(config);
// Send a transaction
const value = '0x';
const data = '0x';
const paymasterParams = await networkApi.paymasterParams(
chainId,
wallet.address,
to,
value,
(await wallet.getNonce()).toString()
);
// broadcast the transaction
const tx = await wallet.sendTransaction({
to,
from: wallet.address,
data,
value,
customData: {
paymasterParams: utils.getPaymasterParams(paymasterParams.data.data.address, {
type: "General",
innerInput: paymasterParams.data.data.signature,
}),
}
});
const receipt = await tx.wait();
console.log(receipt);
View JavaScript Documentation