@cfxlabsinc/b2b-services
Preparing search index...
@cfxlabsinc/withdrawal-services
blockchain
BlockchainWithdrawalEstimateService
Class BlockchainWithdrawalEstimateService
Index
Constructors
constructor
Methods
get
Constructors
constructor
new
BlockchainWithdrawalEstimateService
(
args
:
{
entityProductFeeService
:
EntityProductFeeService
;
sqlClient
:
unknown
;
}
,
)
:
BlockchainWithdrawalEstimateService
Parameters
args
:
{
entityProductFeeService
:
EntityProductFeeService
;
sqlClient
:
unknown
}
Returns
BlockchainWithdrawalEstimateService
Methods
get
get
(
args
:
{
customerId
:
string
;
entityId
:
string
;
targetCurrency
:
"MOVEUSD.SOL"
|
"MOVEUSD.ETH"
|
"MOVEUSD.BASE"
;
}
&
(
|
{
source
:
Pick
<
BlockchainWithdrawalQuote
[
"source"
]
,
"amount"
>
}
|
{
target
:
Pick
<
BlockchainWithdrawalQuote
[
"target"
]
,
"amount"
>
}
)
,
)
:
Promise
<
|
{
error
:
ServiceError
;
ok
:
false
}
|
{
ok
:
true
;
value
:
{
fees
:
Fees
;
sourceAmount
:
BigNumber
;
targetAmountAfterFees
:
BigNumber
;
totalFees
:
BigNumber
;
}
;
}
,
>
Parameters
args
:
{
customerId
:
string
;
entityId
:
string
;
targetCurrency
:
"MOVEUSD.SOL"
|
"MOVEUSD.ETH"
|
"MOVEUSD.BASE"
;
}
&
(
|
{
source
:
Pick
<
BlockchainWithdrawalQuote
[
"source"
]
,
"amount"
>
}
|
{
target
:
Pick
<
BlockchainWithdrawalQuote
[
"target"
]
,
"amount"
>
}
)
Returns
Promise
<
|
{
error
:
ServiceError
;
ok
:
false
}
|
{
ok
:
true
;
value
:
{
fees
:
Fees
;
sourceAmount
:
BigNumber
;
targetAmountAfterFees
:
BigNumber
;
totalFees
:
BigNumber
;
}
;
}
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
get
@cfxlabsinc/b2b-services
Loading...