Returns the templates of this instance’s terms library. A template is a terms of use document kept once and bound to many markets: Save Terms with templateId publishes its text on one market, and a standing policy publishes it on every market adopted under the policy. Only the instance that authored a template can bind it.Templates are versioned. A change to the title or the text writes a new version, and a market bound to the template keeps the version it published until it is bound again. usage counts the markets on each version state.Any key of the instance can read the library. Creating, editing and archiving templates needs an account Trusset approved as a lender of record, which canAuthor reports. This is a database read: nothing is read from the chain.
Query Parameters
string
default:"false"
true or 1 to include archived templates. Any other value leaves them out.
Response Fields
object
Show child attributes
array
Templates that are not archived first, then archived ones, each group by last change, newest first. The text itself is not included: read it with Get Terms Template.
Show child attributes
string
Template ID. Save Terms takes it as templateId, and a standing policy as termsTemplateId.
string
The instance that authored the template.
string
Template title.
integer
Current version. 1 for a new template, raised by every change to the title or the text.
string
keccak256 over the UTF-8 bytes of the current text.
boolean
true once archived. An archived template cannot be bound to a market or a standing policy.
string
ISO 8601 time of archiving, or null.
string
The issuer account that created the template, or null.
string
The issuer account that last changed it, or null.
string
ISO 8601.
string
ISO 8601.
integer
Size of the current text in bytes of UTF-8.
object
The markets whose terms are bound to the template.
Show child attributes
integer
Every market bound to the template, in any state.
integer
Markets serving the template’s current version as published.
integer
Markets serving an older version, not customised.
integer
Markets whose text was edited after binding.
integer
Markets whose bound terms are a draft or offline.
boolean
Whether this account may create, edit and archive templates: true only for an account Trusset approved as a lender of record.