Get payment address
API details
Get the payment address to send asset.
Query parameters
HINstringOptional
The HIN of the broker agent.
ChainIdstringOptional
The chain of the payment address.
Responses
200
OK
400
Bad Request
401
Unauthorized
403
Forbidden
404
Not Found
500
Internal Server Error
501
Not Implemented
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