Currently, only the Ethereum Holesky testnet and AO are supported, with plans to gradually expand support to the Ethereum mainnet and other networks in the future.
Overview
The bavo-network-sdk allows developers to utilize BAVO Network, providing trustless and confidential computing capabilities. For more information, visit the Introduction.
vbnetCopy code_stream_writable.js:57 Uncaught ReferenceError: process is not defined
at node_modules/readable-stream/lib/_stream_writable.js (_stream_writable.js:57:18)
Refer to the project documentation using vite.
Getting Started
Utils
Generate Key
Generate public-private key pairs to submit tasks and retrieve task results:
javascriptCopy codeimport { Utils } from "@bavolabs/bavo-network-sdk";// Generate key pair for submitTask() and getTaskResult()constkeyInfo=awaitnewUtils().generateKey();
BavoNetworkContractClient
Import Client
javascriptCopy codeimport { BavoNetworkContractClient } from '@bavolabs/bavo-network-sdk';
Instantiate Client
The constructor for BavoNetworkContractClient: