Socket
Socket
Sign inDemoInstall

@velas/account-rn-sdk

Package Overview
Dependencies
17
Maintainers
5
Versions
153
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@velas/account-rn-sdk

Velas Account SDK for React Native ===========================


Version published
Maintainers
5
Weekly downloads
154

Weekly downloads

Readme

Source

Velas Account SDK for React Native

Requirements

  • ...

Features

Installation and Usage

To install the package:

npm install --save @velas/account-rn-sdk
# OR
yarn add @velas/account-rn-sdk

How to use it:

import { init, auth } from '@velas/account-rn-sdk'


init(
    {
      velas_rates: config.RATES,
      node_host: config.NODE_HOST,
      account_host: config.BACKEND_HOST,
      account_contract: config.ACCOUNT_CONTRACT,
      account_payer_address: config.BACKEND_ACCOUNT,
    }
)


createAccount = async (network = 'mainnet') => {
    const { error, data } = await auth.createAccount(network)

    if (error) return console.log(error)

    console.log(`Velas Account created: ${JSON.stringify(data)}`)
}

FAQs

Last updated on 19 May 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc