Skip to content

feat: add sendAsset for issued asset payments#201

Merged
El-swaggerito merged 1 commit into
Axionvera:mainfrom
DavidAkere204:feat/issued-asset-payments
Jul 22, 2026
Merged

feat: add sendAsset for issued asset payments#201
El-swaggerito merged 1 commit into
Axionvera:mainfrom
DavidAkere204:feat/issued-asset-payments

Conversation

@DavidAkere204

Copy link
Copy Markdown
Contributor
  • Add SendAssetParams type and optional asset field on PaymentResult
  • Implement sendAsset() and safeSendAsset() with preflight trustline check
  • Export new symbols from package root (sendAsset, safeSendAsset, SendAssetParams)
  • Add 21 unit tests covering validation, trustline preflight, skipTrustlineCheck, ACCOUNT_NOT_FOUND, successful PaymentResult shape, and type coverage
  • Add examples/send-asset.ts demonstrating the full issued-asset lifecycle
  • Create docs/issued-asset-payments.md with asset identifiers, trustline prerequisites, validation rules, error reference, and native XLM compat
  • Update docs/trustline-validation.md with sendAsset integration section
  • Update README.md and examples/README.md with new doc and example links

Native XLM behaviour via sendXLM is unchanged. Passing asset: { code: 'XLM' } to sendAsset is fully equivalent to sendXLM.

closes #165

- Add SendAssetParams type and optional asset field on PaymentResult
- Implement sendAsset() and safeSendAsset() with preflight trustline check
- Export new symbols from package root (sendAsset, safeSendAsset, SendAssetParams)
- Add 21 unit tests covering validation, trustline preflight, skipTrustlineCheck,
  ACCOUNT_NOT_FOUND, successful PaymentResult shape, and type coverage
- Add examples/send-asset.ts demonstrating the full issued-asset lifecycle
- Create docs/issued-asset-payments.md with asset identifiers, trustline
  prerequisites, validation rules, error reference, and native XLM compat
- Update docs/trustline-validation.md with sendAsset integration section
- Update README.md and examples/README.md with new doc and example links

Native XLM behaviour via sendXLM is unchanged. Passing asset: { code: 'XLM' }
to sendAsset is fully equivalent to sendXLM.
@El-swaggerito
El-swaggerito merged commit 6e0018e into Axionvera:main Jul 22, 2026
1 check passed
@grantfox-oss grantfox-oss Bot mentioned this pull request Jul 22, 2026
5 tasks
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.

Add SDK issued asset payment design

2 participants