forked from SmartTokenLabs/TokenScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTokenScript-Syntax.html
More file actions
43 lines (41 loc) · 5.81 KB
/
TokenScript-Syntax.html
File metadata and controls
43 lines (41 loc) · 5.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html
SYSTEM "about:legacy-compat">
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><meta name="copyright" content="(C) Copyright 2020"><meta name="DC.rights.owner" content="(C) Copyright 2020"><meta name="DC.type" content="concept"><meta name="description" content="The most important declarative terms used in the TokenScript XML file"><meta name="DC.relation" scheme="URI" content="BasicConcepts.html"><meta name="DC.format" content="HTML5"><meta name="DC.identifier" content="concept_jtt_cgj_qmb"><link rel="stylesheet" type="text/css" href="css/commonltr.css"><link rel="stylesheet" type="text/css" href="css/custom.css"><title>TokenScript Syntax</title>
<link href="https://fonts.googleapis.com/css?family=Roboto+Slab|Lato">
<script type="text/javascript" src="https://alphawallet.com/wp-content/themes/alphawallet/discourse/widget.js"></script>
</head><body id="concept_jtt_cgj_qmb"><header role="banner"><nav class="navbar navbar-expand-lg navbar-dark bg-dark mb-4">
<div class="container">
<a class="navbar-brand" href="/">🆃okenScript</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item"><a class="nav-link" href="/TokenScript.html">Documents</a></li>
<li class="nav-item"><a class="nav-link" href="/guides/Intro.html">Guides</a></li>
<li class="nav-item"><a class="nav-link" href="/specs/Intro.html">Specs</a></li>
<li class="nav-item external"><a class="nav-link" href="">TokenScript community forum</a></li>
<li class="nav-item external"><a class="nav-link" href="/TokenScript.html">AlphaWallet (uses TokenScript)</a></li>
<li class="nav-item external"><a class="nav-link" href="/guides/Intro.html">Github TokenScript</a></li>
<li class="nav-item external"><a class="nav-link" href="/specs/Intro.html">Github TokenScript Examples</a></li>
</ul>
</div>
</div>
</nav></header><div class="container" id="content"><div class="row"><nav role="toc" class="col-lg-3"><ul><li><a href="Tokenization.html">Tokenization and dApps</a></li><li><a href="index.html">Introduction to TokenScript</a></li><li><a href="QuickStart.html">Quick Start (usuable now)</a></li><li><a href="BasicConcepts.html">Basic Concepts</a><ul><li><a href="TokenScript-Component.html">TokenScript File</a></li><li><a href="Attributes.html">Attributes</a></li><li><a href="Card.html">Card</a></li><li><a href="DataObjects.html">Data Objects</a></li><li><a href="Attestation.html">Attestation</a></li><li class="active"><a href="TokenScript-Syntax.html">TokenScript Syntax</a></li><li><a href="MagicLink.html">Magic Link</a></li></ul></li><li><a href="Deploy.html">Deploy TokenScript</a></li><li><a href="features/FeatureImplementation.html">Features implemented</a></li><li><a href="specs/Intro.html">TokenScript Specs</a></li><li><a href="guides/Intro.html">TokenScript Guides</a></li></ul></nav><main role="main" class="col-lg-9"><article role="article" aria-labelledby="ariaid-title1">
<h1 class="title topictitle1" id="ariaid-title1">TokenScript Syntax</h1>
<div class="body conbody"><p class="shortdesc">The most important declarative terms used in the TokenScript XML file</p><div class="note note note_note"><span class="note__title">Note:</span>
<p dir="ltr" class="p" id="concept_jtt_cgj_qmb__section_d5x_gpm_qmb">A TokenScript file
consists of Token Cards, presently in JavaScript and HTML, overlayed with XML
mark-up.</p><p class="p"> More on that see <a class="xref" href="TokenScript-Component.html" title="TokenScript file is an overlay of XML Mark-up and JavaScript.">TokenScript File</a>.</p></div>
<p class="p">The root element of a TokenScript File can be one of the following:</p>
<ul class="ul" id="concept_jtt_cgj_qmb__ul_dmn_srm_qmb">
<li class="li"><a class="xref" href="elements/cards.html" title="cards element is a container of multiple ***. It can be used as a root element of a TokenScript File."><cards> element</a></li> <li class="li"><a class="xref" href="elements/card.html" title="card element defines a Card"><card> element</a></li>
<li class="li"><a class="xref" href="elements/tokens.html" title="tokens element is a container of multiple Tokens"><tokens> element</a></li>
<li class="li"><a class="xref" href="elements/token.html" title="token element defines a Token"><token> element</a></li>
</ul>
<div class="note tip note_tip"><span class="note__title">Tip:</span> <p class="p">If a Token Issuer issues multiple tokens, it's important to define them in a single TokenScript
file using <a class="xref" href="elements/tokens.html" title="tokens element is a container of multiple Tokens"><tokens> element</a>, for TokenScript release management
reason.</p></div>
<p class="p">A list of TokenScript elements can be found - as a work in progress - in <a class="xref" href="elements/index.html" title="Reference of all elements that can be used in a TokenScript.">TokenScript XML Markup elements</a></p>
</div>
<nav role="navigation" class="related-links"><div class="familylinks"><div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="BasicConcepts.html" title="Learn about the basic concepts of TokenScript, which are used for creating a TokenScript.">Basic Concepts</a></div></div></nav></article></main></div></div></body></html>