Class WithdrawalsApi

Hierarchy

  • WithdrawalsApi
    • WithdrawalsApi

Constructors

  • Parameters

    • Optionalconfiguration: Configuration
    • OptionalbasePath: string
    • Optionalaxios: AxiosInstance

    Returns WithdrawalsApi

Properties

basePath: string
axios: AxiosInstance
configuration: undefined | Configuration

Methods

  • Creates a withdrawal. Use https://docs.x.immutable.com/reference/#/operations/getSignableWithdrawal to get request body params. This endpoint will be deprecated once StarkEx contract gets upgraded to v4, check https://docs.immutable.com/x/reference/#/operations/createWithdrawalV2.

    Parameters

    • requestParameters: WithdrawalsApiCreateWithdrawalRequest

      Request parameters.

    • Optionaloptions: AxiosRequestConfig<any>

      Override http request option.

    Returns Promise<AxiosResponse<CreateWithdrawalResponse, any>>

    Creates a withdrawal

    WithdrawalsApi

  • Creates a withdrawal. Use https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2 to get request body params.

    Parameters

    • requestParameters: WithdrawalsApiCreateWithdrawalV2Request

      Request parameters.

    • Optionaloptions: AxiosRequestConfig<any>

      Override http request option.

    Returns Promise<AxiosResponse<CreateWithdrawalResponse, any>>

    Creates a withdrawal of a token for when StarkEx contract that is higher than v3

    WithdrawalsApi

  • Gets details of a signable withdrawal. This endpoint will be deprecated once StarkEx contract gets upgraded to v4, check https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2.

    Parameters

    • requestParameters: WithdrawalsApiGetSignableWithdrawalRequest

      Request parameters.

    • Optionaloptions: AxiosRequestConfig<any>

      Override http request option.

    Returns Promise<AxiosResponse<GetSignableWithdrawalResponse, any>>

    Gets details of a signable withdrawal

    WithdrawalsApi

  • Gets details of a signable withdrawal

    Parameters

    • requestParameters: WithdrawalsApiGetSignableWithdrawalV2Request

      Request parameters.

    • Optionaloptions: AxiosRequestConfig<any>

      Override http request option.

    Returns Promise<AxiosResponse<GetSignableWithdrawalResponseV2, any>>

    Gets details of a signable withdrawal for starkex contracts that are higher than v3

    WithdrawalsApi

  • Gets details of withdrawal with the given ID

    Parameters

    • requestParameters: WithdrawalsApiGetWithdrawalRequest

      Request parameters.

    • Optionaloptions: AxiosRequestConfig<any>

      Override http request option.

    Returns Promise<AxiosResponse<Withdrawal, any>>

    Gets details of withdrawal with the given ID

    WithdrawalsApi

  • Get a list of withdrawals

    Parameters

    • OptionalrequestParameters: WithdrawalsApiListWithdrawalsRequest

      Request parameters.

    • Optionaloptions: AxiosRequestConfig<any>

      Override http request option.

    Returns Promise<AxiosResponse<ListWithdrawalsResponse, any>>

    Get a list of withdrawals

    WithdrawalsApi