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.
Query parameters
ChainstringOptional
PublicKeystringOptional
AddressstringOptional
Responses
200
OK
400
Bad Request
401
Unauthorized
403
Forbidden
404
Not Found
500
Internal Server Error
501
Not Implemented
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
Last updated