Table of Contents
/Tokens/GetCreationAttributes
Gets essential attributes needed for getting the Trust Provider to accept token creation contracts.
JSON
- Request
{ }
- Response (if successful)
{ "currency":Required(Str(PCurrency)), "commission":Required(Double(PCommission)), "trustProvider":Required(Str(PTrustProvider)) }
XML
- Request
<GetCreationAttributes xmlns="https://waher.se/Schema/BrokerAgent.xsd"/>
- Response (if successful)
<CreationAttributes xmlns="https://waher.se/Schema/BrokerAgent.xsd" currency=(Required(Str(PCurrency))) commission=(Required(Double(PCommission))) trustProvider=(Required(Str(PTrustProvider))) />
Response Parameters
Parameter | Description |
---|---|
PCurrency |
Default currency used by the broker. |
PCommission |
Minimum acceptable commission (in percent) for the Trust Provider to accept and sign the token creation contract. |
PTrustProvider |
ID of Legal Identity that is to sign the constract as Trust Provider. For the Neuron® to act as Trust Provider in the token creation, this ID needs to correspond to the current Legal Identity of the Neuron®. |
Javascript Library
Use the following asynchronous method in the Javascript Library, to call this resource.
var Response = await AgentAPI.Tokens.GetCreationAttributes();