jupiter.swap
Flow hookOne asset in, another out, at Jupiter’s route.
- Calls
- Jupiter JUP6Lk…VTaV4
- Slots
- amount inminimum outstage accounts
- Changes in Jupiter
- Nothing
pook.run("jupiter.swap", { … })Pook runs Jupiter, Kamino and Jito from a private balance, in one transaction. Each protocol is a hook: a small public record that anyone can publish.
One asset in, another out, at Jupiter’s route.
pook.run("jupiter.swap", { … })Example amounts.
Each is a record on chain: a program, one of its instructions, and where the money goes in and comes out. Jupiter, Kamino and Jito did not change their programs.
jupiter.swapFlow hook
Swap on Jupiter. One asset in, another out, at Jupiter’s route.
Nothing.
You ship no upgrade and write no circuit. You earn the author’s share of every run fee through your hook.
@pook/sdk runs any published hook from a wallet or an app, so an app can offer a swap from a private balance next to its usual one.
await pook.run("jupiter.swap", { in, out, amount })Enter with an asset from your wallet, then run any hook from it.