@loopring-web/loopring-sdk / Exports / WhitelistedUserAPI
↳ WhitelistedUserAPI
• new WhitelistedUserAPI(param
, timeout?
, baseUrlMap?
)
Name | Type | Default value |
---|---|---|
param |
InitParam |
undefined |
timeout |
number |
6000 |
baseUrlMap |
Object |
undefined |
baseUrlMap.1 |
string |
"https://api3.loopring.io" |
baseUrlMap.5 |
string |
"https://uat2.loopring.io" |
• Protected
baseUrl: string
= ""
• Protected
chainId: ChainId
= ChainId.MAINNET
▪ Static
KEY_MESSAGE: string
= KEY_MESSAGE
▸ genErr(err
): RESULT_INFO
Name | Type |
---|---|
err |
Error | AxiosResponse <any > & Error |
▸ getAvailableBroker(request
): Promise
<{ broker
: string
}>
Name | Type |
---|---|
request |
GetAvailableBrokerRequest |
Promise
<{ broker
: string
}>
▸ getCounterFactualInfo<T
>(request
): Promise
<{ counterFactualInfo
: undefined
| CounterFactualInfo
; error?
: RESULT_INFO
; raw_data
: T
}>
Name | Type |
---|---|
T |
extends unknown |
Name | Type |
---|---|
request |
GetCounterFactualInfoRequest |
Promise
<{ counterFactualInfo
: undefined
| CounterFactualInfo
; error?
: RESULT_INFO
; raw_data
: T
}>
▸ Protected
makeReq(): Request
Request
▸ Protected
returnTxHash<T
>(raw_data
): RESULT_INFO
| Omit
<T
, "resultInfo"
> & { raw_data
: Omit
<T
, "resultInfo"
> }
Name | Type |
---|---|
T |
extends TX_HASH_API |
Name | Type |
---|---|
raw_data |
T |
RESULT_INFO
| Omit
<T
, "resultInfo"
> & { raw_data
: Omit
<T
, "resultInfo"
> }
▸ setBaseUrl(baseUrl
): void
Name | Type |
---|---|
baseUrl |
string |
void
▸ setChainId(chainId
): void
Name | Type |
---|---|
chainId |
ChainId |
void
▸ submitInternalTransfer(request
, eddsaKey
, apiKey
): Promise
<any
>
Name | Type |
---|---|
request |
OriginTransferRequestV3 |
eddsaKey |
string |
apiKey |
string |
Promise
<any
>
api/whitelisted_user_api.ts:50
▸ Private
submitOffchainWithdraw(request
, eddsaKey
, apiKey
): Promise
<any
>
Name | Type |
---|---|
request |
OffChainWithdrawalRequestV3 |
eddsaKey |
string |
apiKey |
string |
Promise
<any
>