Skip to main content

Using Arcana Network SDKs

This is an example of how a dApp can use the Arcana Network SDKs.

It provides step-by-step instructions on how to figure out if Arcana Network SDKs can be used for your dApp use case and how to integrate and use them.

First, we will analyze the dApp requirements and see which SDKs the dApp must integrate with.

The next section covers how we can configure the dApp using Arcana Developer Dashboard and obtain an App Address. This will be used to integrate with the required SDKs.

tip

Use this guide to map your dApp user authentication and data privacy requirements. This will help you figure out which SDKs your dApp needs to integrate with. Then you can focus on how to integrate.

List dApp Requirements

Let us say our example dApp requires to:

  1. Enable passwordless login for onboarding users.
  2. Provide user data ownership and privacy. Any user data that is stored and accessed via this dApp must be access controlled.

For this example use case, as per this guide we must integrate with both the SDKs.

To address the first requirement, the dApp must integrate with Arcana Auth SDK. The second one can be met if you also integrate with the Arcana Storage SDK.

Using Arcana Network SDKs

There are a couple of steps and minimal code that you need to punch in.

Step 1: Configure dApp

First, register and configure your dApp using the Arcana Developer Dashboard:

https://dashboard.beta.arcana.network

As part of registration, each dApp is assigned a unique App Address. Store this App Address as it will be required later for SDK integration. There is no additional configuration required for enabling passwordless login in the dApp.

Step 2: Integrate Auth SDK, Storage SDK

Step 2a: Integrate with Arcana Auth SDK

After dApp configuration, follow the instructions on how to integrate your dApp with Auth SDK

Once the Auth SDK is integrated and initialized, you can trigger social login through your dApp as shown in the passwordless login step later.

Step 2b: Integrate with Arcana Storage SDK

After integrating with the Auth SDK, follow the instructions on how to integrate with Storage SDK

Once the Storage SDK is integrated and initialized, you can call file data store and retrieve functions through your dApp as shown in the following steps.

Step 2c: Trigger passwordless login

After your dApp is successfully integrated with the Auth SDK, you can plug in passwordless login functionality. When the dApp triggers passwordless login using the Auth SDK, a single-use, valid only once kind of verification link is emailed to the user. User is authenticated once they successfully receive this email and choose to click on the verification link shared via email. For more details, see how to enable passwordless login in dApp using Auth SDK.

Step 2d: Store File/Retrieve File

After the Storage SDK is integrated and initialized, you can invoke file access operations from the SDK in response to user actions such as uploading, downloading a file, etc.

See how to upload a file using the Storage SDK and how to download a file using the Storage SDK for step-by-step instructions.

tip

Check out code samples and templates section of this documentation. You will find ready-to-use code.

Simply copy, paste and modify for quickly integrating your dApp with Arcana Network SDKs.

That is all! 🎉

Arcana Network SDKs make it super easy to enable social authentication and onboard dApp users easily, sign blockchain transactions and also allow dApp users to store, and access their data in a secure and privacy-preserving manner.

See Also