CEX Integration Guide
  • Introduction
  • Circular's Public Blockchains
  • SDK Library
  • Networks
  • Local Calls
    • Retrieve Wallet
    • Retrieve Wallet Balance for a Specific Asset
    • Resolve Domain Name
    • Retrieve Asset Supply
    • Retrieve Blockchain Block Height
    • Retrieve a Single Block
    • Retrieve a Set of Blocks
    • Retrieve List of Blockchains
    • Retrieve Transaction by ID
    • Retrieve Transaction by Address
    • Retrieve Transaction by Date
  • Transactions
    • Transaction Composition
    • Calculating a Transaction Hash
    • Submitting a Transaction
    • Transaction Finality
  • Wallet Creation
    • Creating a Wallet
    • Wallet Generation (Read Warning)
  • Appendix
  • Node.js
    • Page 1
Powered by GitBook
On this page
  1. Wallet Creation

Wallet Generation (Read Warning)

Wallet Generation will be deprecated from version 1.0.9

var Blockchain = '0x...';
var PublicKey = '0x...';

// Remove ‘0x’ from hex strings
if (Blockchain.startsWith('0x')) {
  Blockchain = Blockchain.slice(2);
}

if (PublicKey.startsWith('0x')) {
  PublicKey = PublicKey.slice(2);
}

Circular.RegisterWallet(Blockchain, PublicKey)
  .then(data => {
    // do something with the data in JSON format
    // Result = 200 => Success otherwise error
  });
PreviousCreating a WalletNextAppendix

Last updated 7 months ago