Files
naavyas d507e511f8 Add 'Get Started Using TypeScript tutorial'
Adds a TypeScript equivalent of the 'Get Started Using JavaScript'
tutorial, with runnable Node.js and Web code samples using xrpl.js.

From the issue it covers the TypeScript specific asks:
- Setting up a TypeScript project (typescript dep, tsconfig.json,
  compile and run steps).
- Using xrpl.js's built-in types to build a transaction from input
  values and validate it (typed Payment + xrpToDrops + validate()).

Closes #1208
2026-07-21 15:34:57 -04:00

20 lines
648 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>xrpl.js TypeScript Base Example</title>
<!-- @chunk {"steps": ["import-web-tag"]} -->
<!-- The import map resolves the bare 'xrpl' specifier used in browser.ts
to a browser-ready ES module build served from a CDN. -->
<script type="importmap">
{ "imports": { "xrpl": "https://esm.sh/xrpl@4" } }
</script>
<!-- Load the compiled output of browser.ts (created by `npx tsc`). -->
<script type="module" src="./dist/browser.js"></script>
<!-- @chunk-end -->
</head>
<body>
<h1>xrpl.js TypeScript Get Started</h1>
<div id="output"></div>
</body>
</html>