Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
@mysten/sui.js
Advanced tools
This is the Sui TypeScript SDK built on the Sui JSON RPC API. It provides utility classes and functions for applications to sign transactions and interact with the Sui network.
Note that the SDK is still in development mode and some API functions are subject to change.
We haven't published the npm package yet, so right now you may use npm link to install it locally.
cd sui/sdk/typescript
yarn && yarn build && npm link
Then:
cd your/project
npm link sui.js
Follow the JSON RPC doc to start a local network and local RPC server
The JsonRpcProvider
class provides a connection to the JSON-RPC Server and should be used for all read-only operations. For example:
Fetch objects owned by the address C5206DD02C86A510C4848516229B02ADDFACBE55
import { JsonRpcProvider } from 'sui.js';
const provider = new JsonRpcProvider('http://127.0.0.1:5001/');
const objects = await provider.getOwnedObjectRefs(
'C5206DD02C86A510C4848516229B02ADDFACBE55'
);
Fetch transaction details from a transaction digest:
import { JsonRpcProvider } from 'sui.js';
const provider = new JsonRpcProvider('http://127.0.0.1:5001/');
const txn = await provider.getTransaction(
'6mn5W1CczLwitHCO9OIUbqirNrQ0cuKdyxaNe16SAME='
);
For any operations that involves signing or submitting transactions, you should use the Signer
API. For example:
To sign a raw message: TODO
To transfer a Coin: TODO
FAQs
Sui TypeScript API(Work in Progress)
The npm package @mysten/sui.js receives a total of 53,192 weekly downloads. As such, @mysten/sui.js popularity was classified as popular.
We found that @mysten/sui.js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.