Mesh SDK
The Mesh SDK allows developers quickly build dapps in Typescript on top of the Mesh API. Mesh SDK uses Viem to handle Web3 client interactions making Mesh SDK a plug-and-play option for modern day Web3 builds
Install the Mesh SDK Core package:
Contact your Mesh API administrator for the license file required to install the SDK
Using npm
npm
npm install @instruxi-io/mesh-sdk-core
Or using yarn
yarn
yarn add @instruxi-io/mesh-sdk-core
Basic Usage
Set up your .env
file
See the prerequisites section if you do not have a public and private key
PRIVATE_KEY=""
PUBLIC_KEY=""
Successfully setting up your environment should allow you to connect to the Mesh API and complete the example usage
import { initializeMeshSDK } from "./util";
async function main() {
try {
const mesh = await initializeMeshSDK();
} catch (error) {
console.error("An error occurred:", error);
}
}
main().catch((error) => {
console.error("Unhandled error in main function:", error);
process.exit(1);
});
Minimal implementations of the Mesh SDK
The example usage found in this documentation can also be found here.
Updated 11 days ago
What’s Next
Mesh SDK Authentication