Skip to content

Add getOrCreateOpenOrders function#187

Open
metaproph3t wants to merge 1 commit into
masterfrom
add-oo-utility-function
Open

Add getOrCreateOpenOrders function#187
metaproph3t wants to merge 1 commit into
masterfrom
add-oo-utility-function

Conversation

@metaproph3t
Copy link
Copy Markdown
Collaborator

An analogue to getOrCreateAssociatedTokenAccount. It helps me, as a user of the TS client.

An analogue to `getOrCreateAssociatedTokenAccount`. It helps me, as a
user of the TS client.
@metaproph3t
Copy link
Copy Markdown
Collaborator Author

nevermind, I see from digging more into the code that this approach doesn't work

an alternative would be nice

@mschneider
Copy link
Copy Markdown
Contributor

mschneider commented Oct 30, 2023

You can use Atoken CreateAssociatedTokenAccountIdempotent

@metaproph3t
Copy link
Copy Markdown
Collaborator Author

to create the open orders account?

@mschneider
Copy link
Copy Markdown
Contributor

sorry for the drive by comments, what i meant is: you could add an idempotent operation similar to the one supported by associated token program, i find these in general very convenient to work with and they lead to nicer ux as users don't need to wait through the latency added by another rpc requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants