Skip to main content
Version: 1.0.2

Create / Fetch provider level sponsor account

The Create / Fetch provider level sponsor account API retrieves the public key of the sponsor account. It verifies the existence of the sponsor account and returns the corresponding public key. If the account is not found, the API creates a new account, generates a key pair, and returns the public key.

Method: POST

{{URL}}/jsonrpc

Headers

NameValue
Content-Typeapplication/json

Example


curl --location '{{url}}/rpc/WalletService/GetSponsorAccount' \
--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 '{
}'

Body


{
"payload": {}
}

Response: 200

Response Parameters
ParameterDescription

ID

String

Unique identifier for the entry

Ex: "980001"

Publickey

String

Refers to the public key associated with the sponsor account

Ex: "GBGOICHSUITWIOUYBR2WBQ6WUHIDVRGMZAT2THI5U7Y5JGE4EQFJKC32"

currency

String

Indicates the currency or digital asset associated with the wallet or account

Ex: "XLM"


{
"ID": "980001",
"Publickey": "GBGOICHSUITWIOUYBR2WBQ6WUHIDVRGMZAT2THI5U7Y5JGE4EQFJKC32",
"currency": "XLM"
}