Skip to content

Create user-bank account on send, set minimums#13641

Merged
dylanjeffers merged 3 commits intomainfrom
create-token-account-on-send
Feb 3, 2026
Merged

Create user-bank account on send, set minimums#13641
dylanjeffers merged 3 commits intomainfrom
create-token-account-on-send

Conversation

@dylanjeffers
Copy link
Contributor

@dylanjeffers dylanjeffers commented Feb 2, 2026

Ensures user-bank is created if needed before sending.
Sets minimum send amount

@cursor
Copy link

cursor bot commented Feb 2, 2026

You have run out of free Bugbot PR reviews for this billing cycle. This will reset on March 29.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

@changeset-bot
Copy link

changeset-bot bot commented Feb 2, 2026

⚠️ No Changeset found

Latest commit: 5f67088

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pull-request-size pull-request-size bot added size/L and removed size/M labels Feb 2, 2026
@dylanjeffers dylanjeffers changed the title Create user-bank account on send Create user-bank account on send, set minimums Feb 2, 2026

const instructions: TransactionInstruction[] = []

// If we need to create a user-bank account, add the create instruction first
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you do this instead /similar.

const { userBankAddress, loading: userBankLoading } = useUserbank(mint)

export const useUserbank = (

you can still combine it into one tx, but i don't think that's totally necessary either

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, good call

@dylanjeffers dylanjeffers merged commit 2f5b848 into main Feb 3, 2026
4 checks passed
@dylanjeffers dylanjeffers deleted the create-token-account-on-send branch February 3, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants