Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mention peregrine in quickstart guide #262

Merged
merged 5 commits into from
Jul 27, 2023
Merged

mention peregrine in quickstart guide #262

merged 5 commits into from
Jul 27, 2023

Conversation

weichweich
Copy link
Contributor

fixes https://github.com/KILTprotocol/ticket/issues/2674

  • reword a few things using AI
  • mention peregrine as a development chain

@aws-amplify-eu-central-1
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-262.d3oeht7cvddn19.amplifyapp.com

@weichweich weichweich requested a review from ntn-x2 July 25, 2023 08:18

<Tabs groupId="ts-js-choice">
<TabItem value='ts' label='Typescript' default>

From inside the `kilt-rocks` project directory, install the **KILT SDK**, **Ts-node**, **Axios** and **Typescript**:
From inside the `kilt-rocks` project directory, install the **KILT SDK**, **Typescript**, **ts-node** and **Axios**:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we then also change the order of the installation in the npm install command below?

</SnippetBlock>

After establishing a connection, you have access to the chain, but let's not forget to **close** any connections when we are done!
Connections to blockchain nodes should be dropped when no longer needed: to do that simply call the `Kilt.disconnect()` function at the bottom of `main` function.
By adding `await Kilt.disconnect()` at the end of the main function, you ensure that the connection to the blockchain node is properly closed when the script finishes executing.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
By adding `await Kilt.disconnect()` at the end of the main function, you ensure that the connection to the blockchain node is properly closed when the script finishes executing.
By adding `await Kilt.disconnect()` at the end of the main function, you ensure that the connection to the blockchain node is properly closed when the script terminates execution.

After establishing a connection, you have access to the chain, but let's not forget to **close** any connections when we are done!
Connections to blockchain nodes should be dropped when no longer needed: to do that simply call the `Kilt.disconnect()` function at the bottom of `main` function.
By adding `await Kilt.disconnect()` at the end of the main function, you ensure that the connection to the blockchain node is properly closed when the script finishes executing.
This helps maintain the integrity of your application and is a good practice to follow.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does integrity means?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keeping the app state free from resource leaks which could lead to a crash. Integrity as in an unimpaired condition

You have connected to a Spiritnet node.
Let's now start querying some data from the chain!**
Congratulations!
You have connected to a blockchain node.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe?

Suggested change
You have connected to a blockchain node.
You have connected to a KILT blockchain node.

@weichweich weichweich merged commit a1f6497 into master Jul 27, 2023
6 checks passed
@weichweich weichweich deleted the aw-usable-chain branch July 27, 2023 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants