Overview
A comprehensive guide to using the Okto React SDK and its features
The Okto React SDK provides a comprehensive set of tools and hooks for integrating blockchain functionality into your React applications. This guide will help you understand the main components and features available in the SDK.
Core Functions
Account Operations
Understanding UserOp
Learn about user operations and best practices
signUserOp
Sign user operations for transaction integrity
executeUserOp
Submit signed operations to the blockchain
estimate
Calculate gas and fee estimates for transactions
Explorer Functions
getAccount
Retrieve detailed account and wallet information
getChains
Get list of supported blockchain networks
getNftCollections
Browse and verify NFT collections
getOrdersHistory
View historical transactions and orders
getPortfolio
Get aggregated token holdings across chains
getPortfolioActivity
Track recent portfolio changes and transactions
getPortfolioNFT
View NFT holdings and metadata
getTokens
List available tokens and their details
Intents
Understanding Intents
Learn about Okto's simplified blockchain interactions
tokenTransfer
Transfer fungible tokens between wallets
nftTransfer
Transfer NFTs between wallets
rawTransaction
Create custom EVM transactions
Transaction Flow
Most operations in the SDK follow this pattern:
- Get the OktoClient instance using useOkto hook
- Create a user operation using intent functions
- Sign the operation using signUserOp
- Execute the operation using executeUserOp
For installation, initialization, and example implementations, refer to our Next.js setup guides.