Skip to content

Conversation

@GuiBibeau
Copy link
Collaborator

Summary

Expands the useSplToken README example to document error handling and all important return values.

Closes #114

Changes

  • Updated example to show status, error, sendError, sendSignature, and resetSend
  • Added Available properties list documenting all important return values
  • Added Options section documenting UseSplTokenOptions second parameter

Before

Only 4 return values documented: balance, send, isSending, owner

After

Documents critical properties for production apps:

  • Error handling: error, sendError, status, sendStatus
  • Transaction verification: sendSignature
  • State management: refresh(), resetSend()
  • Options: commitment, owner, revalidateOnFocus, swr

- Update example to show status, error, sendError, sendSignature, resetSend
- Add "Available properties" list documenting all important return values
- Add "Options" section for UseSplTokenOptions second parameter

Closes #114
@GuiBibeau GuiBibeau merged commit 385c535 into main Jan 5, 2026
7 checks passed
@github-actions github-actions bot mentioned this pull request Jan 5, 2026
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.

[Maintenance]: useSplToken README missing critical return values and options

2 participants