NuLink SDK is a software development kit designed to support privacy computing in the NuLink network.
1. Rename .env.example to .env
2. Modify config:
// The SDK backend testnet server address. In the NuLink testnet,
// you can use the address: https://agent.testnet.nulink.org/bk
// Your IPFS address, requires permission to write data. In the NuLink testnet,
// you can use the address: https://agent.testnet.nulink.org/nuipfs
// The NuLink porter address. In the NuLink testnet,
// you can use the address: https://agent.testnet.nulink.org/porter
// The BSC testnet Web3 RPC URL. Example:
3. yarn install
4. yarn build:main
npm i @nulink_network/nulink-sdk
yarn add @nulink_network/nulink-sdk
NulinkHDWallet: The module mainly includes interfaces for nulink wallet related operations.
AccountManager: The module mainly responsible for managing multiple Account objects. AccountManager is a property of the NulinkHDWallet wallet object.
Account: The module mainly includes interfaces for nulink wallet account related operations. Account is a property of the AccountManager object.
Strategy: The module is mainly used to encrypt user files for file uploading using private keys.
Functions: The module mainly includes interfaces for file encryption and uploading, as well as operations related to interacting with the blockchain.