Get Positions for a Wallet
Fetch a wallet's open positions in Orca pools.
When combined with SHYFT APIs/SDK or DAS, we can also query all the position details with respect to a pool using graphQl. This involves two simple steps,
We use SHYFT's APIs/SDK to get all the Orca position mints from a users wallet.
We use the position mint to query Orca's position accounts using GraphQL.
The steps are illustrated below.
Please note that, the Orca Whirlpool position token can be fetched from a users wallet using multiple ways, one of which is illustrated below
All whirlpool position tokens have the update_authority as 3axbTs2z5GBy6usVbNVoqEgZMng3vZvMnAoX29BFfwhr
and the name as 'Orca Whirlpool Position'. Also, please note that in this case we have considered the wallet address has only one Position token. A wallet can have multiple position token, and in that case, we would have to query with each position token in the users wallet in order to get the desired Whirlpool position details.
Last updated