RallyProtocol
Flutter
Flutter
  • 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 'package:rly_network_flutter_sdk/wallet_manager.dart';

//create an account
final account = await WalletManager.getInstance().createWallet();

Get the public address

import 'package:rly_network_flutter_sdk/wallet_manager.dart';

//get current user account address
final address = await WalletManager.getInstance().getPublicAddress();

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 'package:rly_network_flutter_sdk/wallet_manager.dart';
final mnemonic = WalletManager.getInstance().getAccountPhrase();
PreviousGetting startedNextManage wallets

Last updated 1 year ago