-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
also update the generate text example
- Loading branch information
1 parent
a3bb05d
commit 73fbb1b
Showing
6 changed files
with
49 additions
and
365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# GenerateText in Typescript | ||
|
||
To run this example, | ||
|
||
```bash | ||
# Set your API key as an environment variable. | ||
# Get one here https://www.substrate.run/dashboard/keys if this is your first time. | ||
export SUBSTRATE_API_KEY=<your Substrate API key> | ||
|
||
# Navigate to the python example directory. | ||
cd typescript | ||
``` | ||
|
||
To run the example with tsx (default), run the following. | ||
|
||
```bash | ||
npx tsx ./example.ts | ||
npx tsx ./example-multi.ts | ||
|
||
# Or you can use the package.json scripts | ||
npm run example | ||
npm run example-multi | ||
``` | ||
|
||
To run the example with Deno, uncomment the Deno sections in `example.ts` and | ||
run the following. | ||
|
||
```bash | ||
deno run ./example.ts | ||
deno run ./example-multi.ts | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.