Para can be integrated on the server side by using the Para Server Plugin:
Copy
import { SolanaAgentKit } from "solana-agent-kit";import ParaServerPlugin from "@getpara/plugin-para-server";// Initialize Solana Agent Kit with your configurationconst solanaAgent = new SolanaAgentKit( wallet, process.env.RPC_URL, { // Optional configuration options });// Extend the agent with Para Server Pluginexport const solanaAgentWithPara = solanaAgent.use(ParaServerPlugin);
For client-side integration, use the Para Web Plugin:
Copy
import ParaWebPlugin from "@getpara/plugin-para-web";import { solanaAgent } from "./solana";// Extend the agent with Para Web Pluginexport const solanaAgentWithPara = solanaAgent.use(ParaWebPlugin);// Access the Para instance directlyexport const para = solanaAgentWithPara.methods.getParaInstance();