registerWallet()

Register a wallet with a public key

Method Signature

Future<dynamic> registerWallet(String blockchain, String publicKey);

Parameters

NameTypeDescription

blockchain

String

Blockchain address in hex

publicKey

String

User's wallet public key in hex

Example

import 'package:circular_api/circular_api.dart';

void main() {
    final circular = CircularAPI();

    final blockchain = "0x8a20baa40c45dc5055aeb26197c203e576ef389d9acb171bd62da11dc5ad72b2";
    final publicKey = "0x248ea24763f3aeb2590114257b0b95ebc8fc40e287574aa25379bb24c6d661ec";
  
    final wallet = await circular.registerWallet(blockchain, publicKey);
}

Result

The result will be an object of type Map<String, dynamic>

{
  "Result": 200,
  "Response": {
    "TxID": "138dd7a19685c71f281d8f5b9d0de15dc7ce7e9433e1715ec6e45e0fade74c82",
    "Timestamp": "2024:09:26-21:57:12"
  },
  "Node": "8a93c6b6f8d166097ddfeb3e5e3a2998b35e0b6f0bd2e31a8a130a11b6749279"
}

Last updated