(Core) Account API

GET Account Info #

**GET /v2/newbridge/account

返回 account 的账户基本信息

API parameters #

请求参数 #

NameInTypeDescriptionEnumDefault
directionquerystringnew2eth, eth2new, new2heco, heco2new, new2bsc, bsc2new之一,强制接口指定跨链方向,防止地址与方向混淆。
ethereum_recipient_addressquerystringnew2eth方向上,用户在 ethereum 链上的收币地址。; 该字段根据情况可以为 hecochain_recipient_addressbschain_recipient_address
newchain_recipient_addressquerystringeth2new方向上,用户在 newchain 链上的收币地址,可以是 NEW 开头的地址或者 0x 开头的原生格式。
curl -v https://replace-api-domain.ext/newbridge/account?ethereum_recipient_address=0xad61cc6653B62b7C05Bd2F593Bc49d22Fb901A9c&direction=new2eth

返回参数 #

{
  "ethereum_recipient_address": "0xad61cc6653B62b7C05Bd2F593Bc49d22Fb901A9c",
  "newchain_recipient_raw_address": "",
  "direction": "new2eth",
  "newchain_deposit_address": "NEW17zLJnGFnhi9b3yPUanjiieXknCirQhNwWE1",
  "newchain_deposit_raw_address": "0x5741E7e542828DF38A888bcc9b8f9500e4331420"
}
名称类型描述
ethereum_recipient_addressstringnew2eth方向,用户在 ethereum 链上的收币地址。 该字段可以为 hecochain_recipient_addressbschain_recipient_address
newchain_recipient_addressstringeth2new方向,用户在 newchain 链上的收币地址,NEW 开头的地址。
newchain_recipient_raw_addressstringeth2new方向,用户在 NewChain 链上的收币地址的 Raw 格式,0x 开头
directionstringnew2eth或者eth2new之一
ethereum_deposit_addressstringeth2new方向,ethereum 链上的冲币地址。 该字段可以为 hecochain_deposit_addressbschain_deposit_address
newchain_deposit_addressstringnew2eth方向,newchain 链上的冲币地址,NEW 开头的地址
newchain_deposit_raw_addressstringnew2eth方向, newchain 链上的冲币地址,0x 开头的原生格式

Error Codes #

StatusCodeDescriptionParams
400account_not_foundAcount was not found
400address_is_in_invalid_formatRequested address format is not valid{ “type” => “newchain_address” } or { “type” => “ethereum_address” }
429too_many_requestsToo many requests have been made to the api.
500internal_server_errorInternal server error
503service_unavailableService is temporary unavailable
(Core) Account API 最后修改于 2021-05-20 @dd05b89 : update newbridge api v2