xrpl.js 2.0: clean up issue a token examples

This commit is contained in:
mDuo13
2021-10-20 11:39:43 -07:00
parent 92a8faecac
commit ee927ebf94
4 changed files with 29 additions and 783 deletions

View File

@@ -71,20 +71,7 @@ You must be connected to the network to submit transactions to it. The following
_JavaScript_
```js
ripple = require('ripple-lib') // Node.js only. Use a <script> tag in browsers.
async function main() {
api = new ripple.RippleAPI({server: 'wss://s.altnet.rippletest.net:51233'})
await api.connect()
// Code in the following examples continues here...
api.disconnect() // When done. This lets Node.js stop running.
}
main()
```
{{ include_code("_code-samples/get-started/js/base.js", language="js") }}
_Python_