Skip to main content

subscribe_migrations - migrations

Live feed of pool migration events on the DEXes you pick (today: PumpFun bonding-curve → PumpSwap AMM). Server emits migration. Pass protocols (today only PUMPFUN emits migration events).

ChannelSocket.IO event
Authauth.api_key in the handshake
Emitsmigration

Example

Click an icon to toggle it. The example regenerates live, so you can paste it straight into your client.

socket.on("migration", (m) => {
console.log(`${m.mint} migrated ${m.old_pool}${m.new_pool}`);
});

socket.emit("subscribe_migrations", {
protocols: ["PUMPFUN"],
});

Response - migration

{
"protocol": "PUMPFUN",
"mint": "Gc6r…pump",
"old_pool": "<bonding curve>",
"new_pool": "<pumpswap pool>",
"tx": "<signature>",
"time": 1779812627
}

Try it

Notes

  • After a migration the old pool is marked active: false in /metadata; subsequent lookups by mint resolve to the new pool automatically.
  • Combine with subscribe_new_tokens for the launch side, and subscribe_trades on the new pool for the first trades.