Generate Unique Address
If the platform is configured with depositInfoGeneratorType: api
, the Platform make this request to
the Anchor backend every time a transaction is initiated by a client application.
The Anchor must guarantee that the memo returned in this request is unique, so it can be mapped 1-to-1 to a Platform resource such as a SEP-31 transaction.
Here is how this flow would be used for Receiving Anchors that need to create their unique (account, memo)
pairs
outside the platform, using Circle:
Query Parameters
- transaction_id string required
The platform server will save the posted transaction and pass the
transaction_id
through this endpoint. If the anchor wishes to return transaction-dependent unique_address, the anchor may query theGET /transactions
endpoint of the Platform API.
- 200
- 500
Success.
- application/json
- Schema
- Example (from schema)
Schema
unique_address object
An object containing the unique
stellar_address:memo
pair used to identify a destination.stellar_address string requiredA
G...
stellar address or aM...
muxed stellar address of an existing account in the Stellar network.memo stringThe memo to attach to the Stellar payment.
memo_type stringPossible values: [
text
,hash
,id
]The type of memo to attach to the Stellar payment (text, hash, or id).
{
"unique_address": {
"stellar_address": "string",
"memo": "string",
"memo_type": "text"
}
}
Error. The Platform will respond to the client application with the same response code and body.
- application/json
- Schema
- Example (from schema)
Schema
- error string required
- id string
{
"error": "string",
"id": "string"
}