📦 Package Manager Verified sources —
or the
ByteCode
is parsed
Code generation — TypeScript classes
Full storage access — Read also private variables data
Type safety — for READ
and WRITE
actions
API & CLI — usage of contracts
Dependencies — automatically installed
Blockchain layer— built-in communication
Open source— contributions welcome
Solidity developers— enhanced addition to Hardhat
0xweb.json
— to manange dependencies 💡 Understand in seconds > npm i 0xweb -g
> 0xweb config -e
> 0xweb init
> 0xweb i 0x5f4ec3df9cbd43714fe2740f5e3616155c5b8419 --name chainlink/oracle-eth
import { ChainlinkOracleEth } from './0xweb/eth/chainlink/oracle-eth/oracle-eth' ;
import { Config } from '@dequanto/Config' ;
import { $bigint } from '@dequanto/utils/$bigint' ;
async function example ( ) {
await Config. fetch ( ) ;
const oracle = new ChainlinkOracleEth ( ) ;
const decimals: number = await oracle. decimals ( ) ;
const price: bigint = await oracle. latestAnswer ( ) ;
console . log ( ` ETH Price: ${ $bigint. toEther ( price, decimals) } USD ` ) ;
}
example ( ) ;
> 0xweb contract read chainlink/oracle-eth latestAnswer
🔑 Wallet 🔐 The root key for the wallet is derived from the machine key and the password you provide, which won`t be stored anywhere
0xweb accounts new --name foo --pin somepassword
0xweb token transfer USDC --from foo --to 0x123.. . --amount 5 --chain polygon --pin somepassword