/Tokens/GetContractTokens

Gets a list of tokens on the Neuron® created by a specific contract.

JSON

Request
{
	"contractId":Required(Str(PContractId)),
	"offset":Optional(Int(0 <= POffset <= 2147483647)),
	"maxCount":Optional(Int(0 < PMaxCount <= 2147483647)),
	"references":Optional(Boolean(PReferences))
}
Response (if successful)
{
	"Tokens":Required(PTokens)
}

XML

Request
<GetContractTokens xmlns="https://waher.se/Schema/BrokerAgent.xsd"
                   contractId=(Required(Str(PContractId)))
                   offset=(Optional(Int(0 <= POffset <= 2147483647)))
                   maxCount=(Optional(Int(0 < PMaxCount <= 2147483647)))
                   references=(Optional(Boolean(PReferences))) />
Response (if successful)
<TokensResult xmlns="https://waher.se/Schema/BrokerAgent.xsd">
	<Tokens>
		<[Required(PTokens)]>
	</Tokens>
</TokensResult>

Input Parameters

Parameter Description
PContractId ID of contract for which tokens are to be retrieved.
POffset Offset into the list where response begins.
PMaxCount Maximum number of contracts to return.
PReferences If token references is sufficient (true, default), or if entire tokens are to be returned (false).

Response Parameters

Parameter Description
PTokens Tokens found.

Javascript Library

Use the following asynchronous method in the Javascript Library, to call this resource.

var Response = await AgentAPI.Tokens.GetContractTokens(ContractId,Offset,MaxCount,References);
Test




Request Payload:

   

Response Payload: