Before a user can receive or save USDC, a sponsored USDC trustline transaction must be requested from the backend. The client needs an API method to call this endpoint and retrieve the unsigned trustline activation XDR.
Implementation guidelines:
- Add a repository method
requestTrustlineXdr(String accountId) inside SavingsRepository.
- Send a POST request to
/api/savings/trustline with the account public key.
- Return the unsigned transaction envelope XDR string to the caller for signing.
Files location: savings_repository.dart
Expected result: The repository retrieves the unsigned trustline transaction XDR from the server API, enabling the wallet UI to initiate local signing.
Join the contributor Telegram group and ask any questions: https://t.me/+8mSQnieRmIM1Yjc0
Before a user can receive or save USDC, a sponsored USDC trustline transaction must be requested from the backend. The client needs an API method to call this endpoint and retrieve the unsigned trustline activation XDR.
Implementation guidelines:
requestTrustlineXdr(String accountId)insideSavingsRepository./api/savings/trustlinewith the account public key.Files location:
savings_repository.dartExpected result: The repository retrieves the unsigned trustline transaction XDR from the server API, enabling the wallet UI to initiate local signing.
Join the contributor Telegram group and ask any questions: https://t.me/+8mSQnieRmIM1Yjc0