βοΈSVM (Solana)
Prerequisites
Requirement
Version
Notes
npm install @fuul/sdk-solana @solana/web3.js @coral-xyz/anchor1. Configure bundler (Next.js)
// next.config.ts
import type { NextConfig } from 'next';
const webpack = require('webpack');
const nextConfig: NextConfig = {
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
net: false,
tls: false,
buffer: require.resolve('buffer/'),
};
config.plugins.push(
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
})
);
}
return config;
},
};
export default nextConfig;2. Initialize the SDK
3. Fetch on-chain data
4. Build claim instructions
5. Execute the transaction
6. Complete Next.js example
Key types
What the SDK handles internally
What
How the SDK derives it
Troubleshooting
Symptom
Cause
Fix
Last updated