2.0.18 • Published 1 year ago

rn-okto-sdk v2.0.18

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

rn-okto-sdk

This is a React Native SDK for Okto.

Installation

Install the package in your React Native project:

npm install rn-okto-sdk

Usage

First, import the package in your file:

import {
  init,
  authenticate,
  getPortfolio,
  getSupportedNetworks,
  getSupportedTokens,
  getUserDetails,
  getWallets,
  logout,
  orderHistory,
  transferFunds,
  getNFTOrderDetails,
  transferNFT,
} from 'rn-okto-sdk';

Then, initialize the SDK with your API key:

init(apiKeyValue);

You can then use the authenticate method to create a wallet using your Google Auth ID token. This method also returns a list of created wallets:

authenticate(idToken, (result, error) => {
  if (error) {
    console.error(error);
  } else {
    const wallet = JSON.parse(result);
    console.log(wallet);
  }
});

You can also use the other methods provided by the SDK to interact with Okto services. For example, you can get a list of supported tokens with the getSupportedTokens method:

getSupportedTokens((result, error) => {
      const supportedTokens: Token[] = JSON.parse(result);
      console.log(supportedTokens);
});

Documentation For more detailed usage instructions and API documentation, please visit . Okto SDK Documentation

2.0.18

1 year ago

2.0.17

1 year ago

2.0.15

1 year ago

2.0.16

1 year ago

2.0.13

1 year ago

2.0.14

1 year ago

2.0.12

1 year ago

2.0.11

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

0.1.1

2 years ago

0.1.0

2 years ago