RallyProtocol
React Native / Expo
React Native / Expo
  • Getting Started
    • Overview
    • Installation
  • Embedded wallets
    • Getting started
    • Create wallets
    • Manage wallets
    • How it works
  • Gasless Transactions
    • Getting Started
    • Read balances
    • Transfer tokens gaslessly
    • Deploy a contract gaslessly
    • Transact with a contract gaslessly
    • Using without embedded wallets
      • Getting started
      • Typescript Example
  • Resources
    • Full API Reference
    • Guides
    • Example dapps
    • Videos
    • Supported tokens
    • Community libraries
    • FAQs
  • Links
    • Twitter
    • Warpcast
    • Discord
    • Github
    • Blog
    • Youtube
Powered by GitBook
On this page
  • Generate an EOA wallet
  • Get the public address
  • Get the seed phrase
  1. Embedded wallets

Create wallets

Generate an EOA wallet

EOA wallets are generated on-device at device + application level and automatically backed up to the user's cloud account.

import { createAccount } from '@rly-network/mobile-sdk';

//create an account
const newAccount = await createAccount();

Get the public address

import { getAccount } from '@rly-network/mobile-sdk';

// get current user account address
const account = await getAccount();

EOA wallets share the same address for both Amoy and Mainnet Polygon.

Get the seed phrase

Display the seed phrase to enable users to export their EOA wallet.

import { getAccountPhrase } from '@rly-network/mobile-sdk';

const mnemonic = await getAccountPhrase();

PreviousGetting startedNextManage wallets

Last updated 1 year ago