Curra Documentation
  • 👋Welcome
  • 🌪️Vortex
    • 🔑Ownership NFT
    • 🔓Rules
    • ⛽Gas Pump
    • ⛓️Available blockchains
  • 🪙Pricing
  • 👨‍💻Integration Guide
  • API Reference
  • Features
    • Authorization
    • Create Proxy Wallet
    • Retrieve Webhook
Powered by GitBook
On this page
  • Prerequisites
  • Obtain API key
  • JS/TS SDK
  • HTTP
  1. Features

Authorization

PreviousIntegration GuideNextCreate Proxy Wallet

Last updated 1 year ago

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 . After that, the secret can be obtained on the :

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

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

API URL is

https://api.curra.io
application
configuration page
Configuration page