registerWallet()

Register a wallet with a public key

Method Signature

async function registerWallet(blockchain, publicKey)

Parameters

Name
Type
Description

blockchain

String

Blockchain address in hex

publicKey

String

User's wallet public key in hex

Example

var blockchain = "0x8a20baa40c45dc5055aeb26197c203e576ef389d9acb171bd62da11dc5ad72b2";
var publicKey = "0x04b5aa6be8b2e3420fb5a8b22e80e64ace8271d88dc4c081436956b0848e7bcf4e864b35c59e218885ed3d839352b81f85872c9460732ca05b8c18dad29dbad00e";

var response = await CircularProtocolAPI.registerWallet(blockchain, from);

Result

The result will be of type JSON.

var circular = CircularProtocolAPI();{
  "Result": 200,
  "Response": {
    "TxID": "138dd7a19685c71f281d8f5b9d0de15dc7ce7e9433e1715ec6e45e0fade74c82",
    "Timestamp": "2024:09:26-21:57:12"
  },
  "Node": "8a93c6b6f8d166097ddfeb3e5e3a2998b35e0b6f0bd2e31a8a130a11b6749279"
}

Last updated