Get Master Deposit Address
Query the deposit address information of MASTER account.
HTTP Request
GET /v5/asset/deposit/query-address
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
coin | true | string | Coin, uppercase only |
chainType | false | string | Please use the value of >> chain from coin-info endpoint |
Response Parameters
Parameter | Type | Comments |
---|---|---|
coin | string | Coin |
chains | array | Object |
> chainType | string | Chain type |
> addressDeposit | string | The address for deposit |
> tagDeposit | string | Tag of deposit |
> chain | string | Chain |
> batchReleaseLimit | string | The deposit limit for this coin in this chain. "-1" means no limit |
Request Example
- HTTP
- Python
- Node.js
GET /v5/asset/deposit/query-address?coin=USDT&chainType=ETH HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1672192792371
X-BAPI-RECV-WINDOW: 5000
from pybit.unified_trading import HTTP
session = HTTP(
testnet=True,
api_key="XXXXX",
api_secret="XXXXX",
)
print(session.get_master_deposit_address(
coin="USDT",
chainType="ETH",
))
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getMasterDepositAddress('USDT', 'ETH')
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
Response Example
{
"retCode": 0,
"retMsg": "success",
"result": {
"coin": "USDT",
"chains": [
{
"chainType": "ERC20",
"addressDeposit": "0xd9e1cd77afa0e50b452a62fbb68a3340602286c3",
"tagDeposit": "",
"chain": "ETH",
"batchReleaseLimit": "-1"
}
]
},
"retExtInfo": {},
"time": 1672192792860
}