getWithdrawTransactionRequest method

Future<ApiResponse> getWithdrawTransactionRequest(
  1. GetWithdrawTransactionRequestParams params
)

Get transaction request for withdrawing collected fees for the specified chain

If a list of token addresses is provided, the generated transaction will only withdraw the specified funds.

If there are no collected fees for the provided token's addresses, the 400 error will be thrown.

The endpoint returns a IntegratorWithdrawalTransactionResponse object which contains the transaction request.

Implementation

Future<ApiResponse> getWithdrawTransactionRequest(
  GetWithdrawTransactionRequestParams params,
) async {
  return api.getWithdrawTransactionRequest(params);
}