Deframe
  • 🏠Getting Started
  • 🏗️Architecture Overview
  • Tutorial Guides
    • Loans
      • How to quote for a new loan
      • How to execute a new loan
      • How to get current position of a loan
      • How to repay a loan
    • Yield
      • How to check protocol info
      • How to deposit
      • How to check open positions
      • How to withdraw
    • Swaps
      • EVM
        • How to execute a swap
        • How to get a quote
      • Solana
        • How to execute a swap
        • How to get a quote
  • ⚙️API
    • GET /strategies
    • GET /strategies/:id
    • GET /strategies/:id/bytecode
    • GET /wallets/:address
  • 🔒Protocols
  • 🗳️Widget Integration
Powered by GitBook
On this page

Widget Integration

Contact our team to set up a custom domain for you and generate an API key for accessing our API.

Integrate your Widget

To integrate Pods widget in your platform, you just need to embed you widget URL in an iFrame, it can work on any tech stack and even in no-code tools.

React code sample demonstrating how to embed "<company>.widget.pods.fi" in an iframe

Copy

const PodsWidget = () => {
  return (
      <iframe
        src="https://<company>.widget.pods.fi/?address=<userAddress>"
        title="Pods Widget"
        allow="clipboard-write"
        style={{ width:"100vw", height:"100vh"}}
      />
  );
};

export default PodsWidget;

This code creates a React component called PodsWidget that embeds the "<company>.widget.pods.fi" widget in an iframe.

In the situation your platform doesn't have the capability to embed an iFrame, Pods can provide access to react UI components and code samples on how to reproduce the widget natively in your platform.

PreviousProtocols

Last updated 7 months ago

🗳️