import { createSuiClient } from "shinami";
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";
const nodeClient = createSuiClient(yourNodeAccessKey);
// get the current gas price
await nodeClient.getReferenceGasPrice();
Dynamically scalable
Perfectly elastic
Whether growth is predictable or faster than you imagined, your app will seamlessly scale to meet the demand.