RegisterWallet()

Register a wallet with a public key

Method Signature

func RegisterWallet(blockchain string, publicKey string) map[string]interface{}

Parameters

Name
Type
Description

blockchain

String

Blockchain address in hex

publicKey

String

User's wallet public key in hex

Example

package main

import (
	"fmt"

	"github.com/circular-protocol/circular-go/circular_protocol_api"
)

func main() {
	var blockchain = "0x8a20baa40c45dc5055aeb26197c203e576ef389d9acb171bd62da11dc5ad72b2"
	var public_key = "0x04b5aa6be8b2e3420fb5a8b22e80e64ace8271d88dc4c081436956b0848e7bcf4e864b35c59e218885ed3d839352b81f85872c9460732ca05b8c18dad29dbad00e"
	
	result := circular_protocol_api.RegisterWallet(blockchain, public_key)
	fmt.Println(result)
}

Result

The result will be of type Map, but for easier readability, here is the equivalent in JSON.

Last updated