setting up the SDK
To understand what you are doing, Please Check it out the link above
Type npm install "https://github.com/IQCoreTeam/code_in_sdk.git" to install IQ sdk.
Features
Inscribe data (
codeIn,codeInAfterErr)Fetch data (
readCode,fetchLargeFileAndDoCache)Validate local data against on-chain state (
dataValidation)Account initialization helper (
userInit)
Step1. Make .env file
SIGNER_PRIVATE_KEY="your_base58_encoded_private_key"
RPC="https://your.solana.rpc.endpoint"Step2. Account initialization (required on first use per wallet)
Before writing data for a wallet, you must initialize the user account on-chain:
import iqsdk from 'iq-sdk';
await iqsdk.userInit();Write data to chain
Write Data From Middle:
Fetch data from chain
Or fetch and cache large files:
Validate local data
Last updated