Developer Documentation
Technical setup guides, SDK libraries configuration, and smart contract audit guidelines.
1. SDK Quickstart
Install the official package from npm. Make sure to specify your RPC node endpoints in your env parameters:
npm install @web3glob/sdk
2. Multi-Chain Config
Initialize the client binder to setup failover RPC nodes. Supported mainnets are Ethereum, Solana, and custom subnets.
import { Web3GlobClient } from "@web3glob/sdk";
const client = new Web3GlobClient({
network: "ethereum-mainnet",
rpcEndpoints: ["https://eth-node1.web3glob.com", "https://eth-node2.web3glob.com"]
});
3. Transaction Querying
Retrieve receipt logs and trace state transitions of a specific wallet or transaction hash with built-in retry parameters:
// Query hash details
const receipt = await client.getTransactionReceipt("0xa1b2c3d4...");
console.log("Gas Used:", receipt.gasUsed);
4. Event Logs Subscription
Register a WebSocket daemon to listen for real-time Transfer event topics emitted on EVM blockchains:
client.onEvent({
address: "0x123456...",
event: "Transfer(address,address,uint256)"
}, (log) => {
console.log("Tokens transferred:", log.amount);
});
5. Security Audit Preparations
Prior to submitting Solidity files to our manual reviews division, run automated tests locally and verify compile outputs:
forge test --gas-report