Installation
Quick Start
1
Set up the SDK
Create a config with your product’s name.
2
Request a quote
Now you can interact with the SDK and for example request a quote.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Start accepting payments from outside of Internet Computer Protocol within 5 minutes.
npm install @keygate/sdk
pnpm add @keygate/sdk
Set up the SDK
import { createConfig } from '@keygate/sdk';
createConfig({
integrator: 'Product/dApp name',
});
Request a quote
import { ChainId, getQuote } from '@keygate/sdk';
const quote = await getQuote({
fromAddress: 'q2f4q-zm5mc-zdmnx-3td3y-g7gpo-n2j3y-wafen-43337-zvj6j-4lh4p-cqe',
fromChain: ChainId.ICP,
toChain: ChainId.OPT,
fromToken: '53nhb-haaaa-aaaar-qbn5q-cai', // osUSDC
toToken: '0x0b2c639c533813f4aa9d7837caf62653d097ff85', // USDC (Optimism)
fromAmount: '1000000000000000000',
});
