get registered info

API details

Retrieve the HIN (Hibit Identity Number) after the wallet has been registered. Note that there is a ~5-second delay before the registered wallet information becomes available.

Get wallet registration info

get
Query parameters
ChainstringOptional
PublicKeystringOptional
AddressstringOptional
Responses
200
OK
get
GET /v1/wallet/info HTTP/1.1
Host: testnetopenapi.hibit.app
Accept: */*
{
  "code": 1,
  "message": "text",
  "data": {
    "hin": "text"
  }
}

Code example

import { hibitClient, Chain } from '@delandlabs/hibit-sdk';

const options = {
  network: HibitNetwork.Testnet
};
hibitClient.setOptions(options);

const chain = Chain.Ethereum; // Chain.Kaspa
const address = '0x123123123123123';// kaspa:1234567...
// or const publicKey = '0x123456789'
const walletInfo = await hibitClient.getRegisteredWalletInfo({chain,address, /*publicKey*/});
const hin = walletInfo.hin;

SDK

Source code https://github.com/Deland-Labs/hibit-sdk

Example

https://hibit-sdk-example.hibit.app/

References

What is HIN?

How to Obtain your HIN and Proxy Key?

Last updated