This repository serves as a comprehensive example for interacting with the Sui blockchain using TypeScript. It demonstrates how to integrate with the Sui network, likely leveraging BlockRazor's infrastructure or SDK, and includes protocol buffer definitions for structured data handling.
The project is organized into the following key directories:
example/Contains practical usage examples and scripts.protos/Houses Protocol Buffer (.proto) definitions.package.jsonThe standard Node.js configuration file.
Follow these steps to set up and run the project.
- Node.js (
v18or higher recommended) npmoryarn
Clone the repository:
git clone https://github.com/BlockRazorinc/sui_ts_example.git
cd sui_ts_exampleInstall dependencies:
npm install
# or
yarn installTo run the examples provided in the example/ directory, you can typically use ts-node or the scripts defined in package.json.
# direct execution
npx ts-node example/demo_grpc.tsNote: Ensure you have configured your environment variables (for example, SUI_RPC_URL and PRIVATE_KEY) if required by the examples.