getKeysFromListOfStrings()

Get private key, public key and wallet address form a seed phrase written on a single Map object

Method signature

Map<String, String> getKeysFromListOfStrings(List<String> seedPhrase);

Parameters

Name
Type
Description

seedPhrase

List<String>

The seedphrase that you want to use for generating the keys in a list format

Example

import 'package:circular_api/circular_api.dart';

void main() {
  final circular = CircularAPI();
  final seedPhrase = ["Hello", ",", "World!"];

  final keys = circular.getKeysFromListOfStrings(seedPhrase);
}

Result

The result will be a Map with these keys:

{
  "privateKey" : String,
  "publicKey"  : String,
  "address"    : String,
  "seedPhrase" : String,
}

Last updated