Get payment address

API details

Get the payment address to send asset.

Get the payment address

get
Query parameters
HINstringOptional

The HIN of the broker agent.

ChainIdstringOptional

The chain of the payment address.

Responses
200
OK
get
GET /v1/payment-address HTTP/1.1
Host: testnetbrokerapi.hibit.app
Accept: */*
{
  "code": 1,
  "message": "text",
  "data": {
    "address": "text"
  }
}

Code example

import { brokerClient } from '@delandlabs/hibit-sdk';

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

const address = await brokerClient.getPaymentAddress({
  hin: YOUR_BROKER_HIN,
  chainId: new ChainId(Chain.Kaspa, ChainNetwork.KaspaTestNet)
});

Note

For this HIN parameter, please contact the Hibit team to have a dedicated HIN assigned to you.

Last updated