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
});