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.
{
"Result": 200,
"Response": {
"TxID": "138dd7a19685c71f281d8f5b9d0de15dc7ce7e9433e1715ec6e45e0fade74c82",
"Timestamp": "2024:09:26-21:57:12"
},
"Node": "8a93c6b6f8d166097ddfeb3e5e3a2998b35e0b6f0bd2e31a8a130a11b6749279"
}
Last updated