1
Install the Trust Engine SDK
Add the Trust Engine SDK to your React project
2
Set Up Your React Component
Initialize the SDK and set up your React component structureCreate or update your React component:
📝 IMPORTANT: You will be building ONE COMPONENT throughout this guide. Each step adds new functions to the same React component. DO NOT replace previous code - just keep adding to it!
3
Create a Wallet for Your User
Let users enter their ID and create a walletAdd this function to your React component:
4
Add File Upload and Registration
Now let users select and register files using the wallet from Step 3Add these functions to your React component (below the createWallet function):
5
Verify File Registration
Check if the file from Step 4 was successfully registeredAdd this function to your React component (below the registerFile function):
6
Test Your Complete React App
Now that you have all the functions in your component, let’s test them together!Your component should now have all the functions working together:
- User Input: Enter a unique user ID
- Wallet Creation: Click “Create Wallet” to generate a managed wallet
- File Selection: Choose any file from your computer
- File Registration: Click “Register File” to record it on blockchain
- Verification: Click “Verify Registration” to confirm it’s recorded
7
Complete React Component
📋 This is for reference only - if you followed the previous steps, your component should already be working! This shows the complete component structure in one place.
