Skip to main content
Version: 1.0.2

Deposit

The Deposit API is used to initiate the deposit process for the SEP-24 protocol. By invoking this API, users can initiate a deposit transaction following the SEP-24 standard.

Method: POST

{{URL}}/jsonrpc

Headers

NameValue
Content-Typeapplication/json

Example

Payload Parameters
ParameterDescription

id

Mandatory

String

Represents the unique identifier associated with the deposit transaction.

Ex: "701001"

asset

Mandatory

String

Refers to the asset code for the deposit transaction. It specifies the type of asset being deposited.

Ex: "SRT"


curl --location '{{url}}/rpc/WalletService/DepositProcess' \
--header 'DiviceID: 8020' \
--header 'Signature: keyId=8020,algorithm=ecdsa-sha256,signature=MEUCIQCNi1vjPf/HpI9R2DXnc0Zt1s6YmWyA4H1x813lJ+tuDgIgB+lrc+iCMyTUGiraG9kGKNDXYiz7RfBBtifr5wUQs54=' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic e3tFbWFpbH19Ont7UGFzc3dvcmR9fQ==' \
--data '{"id":"701001","asset":"SRT"}'

Body


{
"id": "701001",
"asset": "SRT"
}

Response: 200

Response Parameters
ParameterDescription

type

String

Represents the type of action or information needed for the deposit transaction.

Ex: "interactive_customer_info_needed"

url

String

Specifies the URL that needs to be accessed to complete the deposit transaction. It typically directs the user to an interactive web application where customer information can be provided.

Ex: "https://testanchor.stellar.org/sep24/transactions/deposit/webapp?asset_code=SRT&transaction_id=1d54b233-cd1c-4b14-9e62-dbd382698018&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL3Rlc3RhbmNob3Iuc3RlbGxhci5vcmcvc2VwMjQvdHJhbnNhY3Rpb25zL2RlcG9zaXQvaW50ZXJhY3RpdmUiLCJpYXQiOjE2ODc4NDQwNjQsImV4cCI6MTY4Nzg0NDA5NCwic3ViIjoiR0M1VDdENVZFTEdETldJV1lXS1RQWTZMNFFINlpSUVZDV0s2UVIzWFJFQzNFRjROUzNTNldJNVQiLCJqdGkiOiIxZDU0YjIzMy1jZDFjLTRiMTQtOWU2Mi1kYmQzODI2OTgwMTgifQ.OD8kEVeeo-26vgQeIg2ar1Y-qU7x3xW7qaIatPU8-6k&lang=en"

id

String

Represents the unique identifier associated with the deposit transaction. It is also used as the transaction ID.

Ex: "1d54b233-cd1c-4b14-9e62-dbd382698018"

transaction

Object

id

String

Represents the unique identifier associated with the deposit transaction. It is also used as the transaction ID.

Ex: "1d54b233-cd1c-4b14-9e62-dbd382698018"

kind

String

Represents the type or nature of the transaction.

Ex: "deposit"

status

String

Indicates the current status of the deposit transaction.

Ex: "incomplete"


{
"type": "interactive_customer_info_needed",
"url": "https://testanchor.stellar.org/sep24/transactions/deposit/webapp?asset_code=SRT&transaction_id=1d54b233-cd1c-4b14-9e62-dbd382698018&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJodHRwczovL3Rlc3RhbmNob3Iuc3RlbGxhci5vcmcvc2VwMjQvdHJhbnNhY3Rpb25zL2RlcG9zaXQvaW50ZXJhY3RpdmUiLCJpYXQiOjE2ODc4NDQwNjQsImV4cCI6MTY4Nzg0NDA5NCwic3ViIjoiR0M1VDdENVZFTEdETldJV1lXS1RQWTZMNFFINlpSUVZDV0s2UVIzWFJFQzNFRjROUzNTNldJNVQiLCJqdGkiOiIxZDU0YjIzMy1jZDFjLTRiMTQtOWU2Mi1kYmQzODI2OTgwMTgifQ.OD8kEVeeo-26vgQeIg2ar1Y-qU7x3xW7qaIatPU8-6k&lang=en",
"id": "1d54b233-cd1c-4b14-9e62-dbd382698018",
"transaction": {
"id": "1d54b233-cd1c-4b14-9e62-dbd382698018",
"kind": "deposit",
"status": "incomplete"
}
}