NuLink SDK
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
REACT_APP_CENTRALIZED_SERVER_URL=xxxxx
// Your IPFS address, requires permission to write data. In the NuLink testnet,
// you can use the address: https://agent.testnet.nulink.org/nuipfs
REACT_APP_IPFS_NODE_URL=xxxxx
// The NuLink porter address. In the NuLink testnet,
// you can use the address: https://agent.testnet.nulink.org/porter
REACT_APP_PORTER_URL= xxxxx
// The BSC testnet Web3 RPC URL. Example:
REACT_APP_WEB3_RPC_URL=xxxxx
3. yarn install
4. yarn build:main
npm i @nulink_network/nulink-sdk
or
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.
Last modified 3mo ago