feat: trigger fiat payout to Stellar Anchors via API (#943) - #1020
Merged
ONEONUORA merged 2 commits intoJul 30, 2026
Conversation
Contributor
Author
|
@ONEONUORA please trigger cli |
Contributor
|
@pixels26 |
Contributor
Author
|
@ONEONUORA please allow auto trigger |
pixels26
force-pushed
the
feat/fiat-payout-anchor-943
branch
from
July 30, 2026 11:58
ffa3fcd to
5cca2da
Compare
Contributor
|
@pixels26 |
Contributor
Author
|
@ONEONUORA all solved |
ONEONUORA
approved these changes
Jul 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Close #943
Summary
Replaces the stub
AnchorRegistry::create_payoutwith a real async HTTP client that POSTs payout requests to the configured Stellar Anchor API endpoint.Changes
anchor_api_urlfield loaded fromANCHOR_API_URLenv var (defaults tohttp://localhost:8081)AnchorRegistryto hold areqwest::Clientand anchor base URL;create_payoutnow makes an async POST to{anchor_api_url}/transactions/sendwith the payout payload and parses the response into anAnchorPayoutwith proper status tracking (Pending/Processing/Completed/Failed)config.anchor_api_urltoAnchorRegistry::newANCHOR_API_URLdocumentation.awaitthe now-asynccreate_payoutAnchorRegistry::new()calls to pass an API URLAnchor API Contract
The implementation follows SEP-31 conventions. The anchor is expected to expose a
POST /transactions/sendendpoint accepting:{ "beneficiary_address": "...", "beneficiary_name": "...", "token": "...", "token_amount": 0.0, "fiat_currency": "USD", "bank_name": "...", "account_number": "..." }And responding with:
{ "id": "tx-id", "transaction_id": "alt-id", "status": "pending|processing|completed|failed", "exchange_rate": 1.0, "fiat_amount": 100.0, "fee": 0.5 }