Generate Unique Address
GET/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:
Request
Query Parameters
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 the GET /transactions
endpoint of the Platform API.
Responses
- 200
- 500
- application/json
- Schema
- Example (from schema)
Schema
unique_address
object
An object containing the unique
stellar_address:memo
pair used to identify a
destination.
A G...
stellar address or a M...
muxed stellar address of an existing account in the Stellar network.
The memo to attach to the Stellar payment.
The type of memo to attach to the Stellar payment (text, hash, or id).
Possible values: [text
, hash
, 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",
"id": "string"
}