Skip to main content

Overview

Allows the client to retrieve a list of available service providers that can be used to buy eDaler.

HTTP request

POST /Agent/Wallet/GetServiceProvidersForBuyingEDaler

Authentication

Requires a valid JWT bearer token.

Request (JSON)

{
}

Response (JSON)

{
	"Providers":
	{
		"id": Required(Str(PId)),
		"type": Required(Str(PType)),
		"name": Required(Str(PName)),
		"iconUrl": Optional(Str(PUconUrl)),
		"iconWidth": Optional(Int(PIconWidth)),
		"iconHeight": Optional(Int(PIconHeight)),
		"templateId": Optional(Str(PTemplateId))
	}?[]
}

Response parameters

ParameterDescription
PIdID of service provider.
PTypeType (class name) of service provider.
PNameDisplayable name for service provider.
PIconUrlOptional reference to icon that can be displayed together with the name.
PIconWidthWidth of optional icon.
PIconHeightHeight of optional icon.
PTemplateIdReference to optional smart contract. If provided, a smart contract needs to be created based on this template, and then signed by the client, to buy eDaler using the service provider. The contract contains necessary parameters and information for the service provider to be able to process the request. If a contract template is not provided, it can be assued the service provider will collect the information via a web page, that the client must open and complete.

Notes

This endpoint uses the request schema notation described in Pattern matching.