import { createSuiClient } from "@shinami/clients";
const nodeClient = createSuiClient(yourNodeAccessKey);
// when you subscribe, you receive a function to unsubscribe
let unsubscribeFunction = await nodeClient.subscribeEvent({
filter: {
// receive all events emitted by a Move package
Package: "thePackageId"
},
// What you want to happen when an event is received
onMessage: yourCallbackFunction
});
// returns true if successful, false if not
let result = await unsubscribeFunction();
import { createSuiClient } from "@shinami/clients";
const nodeClient = createSuiClient(yourNodeAccessKey);
// get the current gas price
await nodeClient.getReferenceGasPrice();
Dynamically scalable
Is your growth faster than you imagined? We'll seamlessly scale with you.