Getting Setup
Get up and running with our Aleph Typescript SDK and start developing your Aleph integration.
Integrating with Aleph requires two steps:
Install the client library in your application so that you can interact with the Aleph API
Make an API request
1. Import aleph-sdk-ts in your dApp
We provide an official typescript library. Open your terminal window and navigate into your project's root folder and install the library:
2. Make an API request
To check the integration is working, make a basic API request within your project.
Here we are retrieving all Posts that were made with a post type of "chat" and with a reference of "hall". We'll go into more details about post types and references in the Post Resource Reference.
Aleph returns an object with a posts
key containing an array of all the posts that were made with the query params we requested.
The response should look like this:
3. Next Steps - Writing to the Network
Once you have successfully made an API GET request, connect a blockchain account and write to the aleph.im network (Posting to the Network).
Last updated