API Reference
Commands (Sent to Iframe)
ADD_WALLETS
Adds wallets to the whitelist.- String:
"ABCD"or"ABCD:Label" - Object:
{ address: "ABCD", label: "Label" }
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Commands and responses for iframe communication
interface AddWalletsMessage {
type: 'ADD_WALLETS';
wallets: (string | Wallet)[];
}
"ABCD" or "ABCD:Label"{ address: "ABCD", label: "Label" }// Using string format
sendMessage({
type: 'ADD_WALLETS',
wallets: ['XYZ1:DeFi Protocol', 'XYZ2:Market Maker', 'XYZ3']
});
// Using object format
sendMessage({
type: 'ADD_WALLETS',
wallets: [
{ address: 'ABCD', label: 'Whale Trader' },
{ address: 'EFGH', label: 'Smart Money' },
{ address: '1234' }
]
});
interface ClearWalletsMessage {
type: 'CLEAR_WALLETS';
}
sendMessage({ type: 'CLEAR_WALLETS' });
interface GetWalletsMessage {
type: 'GET_WALLETS';
}
sendMessage({ type: 'GET_WALLETS' });
| Response Type | Description |
|---|---|
IFRAME_READY | Sent when iframe is loaded and ready for communication |
WALLETS_ADDED | Confirms wallets were added successfully |
WALLETS_CLEARED | Confirms iframe wallets were cleared |
CURRENT_WALLETS | Returns current whitelist data |
WHITELIST_TRADING_STATS | Real-time trading statistics for whitelisted addresses |
SOL_PRICE_UPDATE | Real-time SOL price updates |
WHITELIST_TRADE | Individual trade events from whitelisted addresses |
TOKEN_PRICE_UPDATE | Token price updates from all trading activity |
