Preparing search index...
The search index is not available
Vertex Typescript SDK Documentation
Documentation
Vertex Client
Internal
SpotExecuteAPI
Class SpotExecuteAPI
Hierarchy (
view full
)
BaseSpotAPI
SpotExecuteAPI
Index
Constructors
constructor
Properties
context
Methods
get
Token
Contract
For
Product
deposit
withdraw
approve
Allowance
_mint
MockERC20
Constructors
constructor
new
Spot
ExecuteAPI
(
context
)
:
SpotExecuteAPI
Parameters
context
:
VertexClientContext
Returns
SpotExecuteAPI
Properties
Readonly
context
context
:
VertexClientContext
Methods
get
Token
Contract
For
Product
get
Token
Contract
For
Product
(
params
)
:
Promise
<
IERC20
>
Retrieves the ERC20 token contract for a spot product
Parameters
params
:
ProductIdOrTokenAddress
Returns
Promise
<
IERC20
>
deposit
deposit
(
params
)
:
Promise
<
ContractTransactionResponse
>
Parameters
params
:
DepositCollateralParams
Returns
Promise
<
ContractTransactionResponse
>
withdraw
withdraw
(
params
)
:
Promise
<
EngineServerExecuteSuccessResult
<
"withdraw_collateral"
>
>
Parameters
params
:
WithdrawCollateralParams
Returns
Promise
<
EngineServerExecuteSuccessResult
<
"withdraw_collateral"
>
>
approve
Allowance
approve
Allowance
(
params
)
:
Promise
<
ContractTransactionResponse
>
Parameters
params
:
ApproveAllowanceParams
Returns
Promise
<
ContractTransactionResponse
>
_mint
MockERC20
_mint
MockERC20
(
params
)
:
Promise
<
ContractTransactionResponse
>
Parameters
params
:
MintMockERC20Params
Returns
Promise
<
ContractTransactionResponse
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
context
Methods
get
Token
Contract
For
Product
deposit
withdraw
approve
Allowance
_mint
MockERC20
Documentation
Loading...
Retrieves the ERC20 token contract for a spot product