Authorization

Curra is operated by the coordinator (trustless authority), which indexes various blockchains to obtain data related to Curra features. All Curra features are completely non-custodial and doesn't require access to your private keys to work, you can treat it as "read-only".

Prerequisites

To perform authorized requests, you can use JS/TS SDK or form HTTP requests by providing your API key.

Obtain API key

To get the API secret you should complete onboarding on the Curra application. After that, the secret can be obtained on the configuration page:

JS/TS SDK

Install SDK:

npm i @curra/sdk

Create Curra instance:

const { Blockchain, Curra } = require("@curra/sdk");

const curra = Curra.fromApiKey({
  apiKey: "paste your API key here",
});

Now you can use the instance to perform requests, and create an address for example:

const address = await curra.getNextAddress();

HTTP

API URL is https://api.curra.io

Set X-API-KEY header to your API key to authorize your HTTP request

HTTP request example to create an address on Ethereum blockchain:

GET /me
HOST: api.curra.io

Last updated