@@ -20,6 +20,10 @@ import {
2020 AccountBalance ,
2121 GetAPIKeyResponse ,
2222 GetOperationKeyResponse ,
23+ BuildTransferalTransactionRequest ,
24+ BuildTransferalTransactionResponse ,
25+ SubmitTransferalTransactionRequest ,
26+ SubmitTransferalTransactionResponse ,
2327} from '../../types' ;
2428import { Api } from '../api' ;
2529
@@ -157,6 +161,18 @@ export class Accounts extends Api {
157161 return this . resolveAxiosData ( res ) ;
158162 }
159163
164+ /**
165+ * Builds a transferal transaction.
166+ * @param data - The build transferal transaction request data.
167+ * @returns A promise that resolves to the build transferal transaction response.
168+ */
169+ public buildTransferalTransaction (
170+ data : BuildTransferalTransactionRequest ,
171+ ) : Promise < BuildTransferalTransactionResponse > {
172+ const res = this . axiosInstance . post ( '/accounts/transferal/build' , data ) ;
173+ return this . resolveAxiosData ( res ) ;
174+ }
175+
160176 /**
161177 * Submits a deposit transaction.
162178 * @param data - The submit deposit transaction request data.
@@ -180,4 +196,16 @@ export class Accounts extends Api {
180196 const res = this . axiosInstance . post ( '/accounts/withdrawal/submit' , data ) ;
181197 return this . resolveAxiosData ( res ) ;
182198 }
199+
200+ /**
201+ * Submits a transferal transaction.
202+ * @param data - The submit transferal transaction request data.
203+ * @returns A promise that resolves to the submit transferal transaction response.
204+ */
205+ public submittransferalTransaction (
206+ data : SubmitTransferalTransactionRequest ,
207+ ) : Promise < SubmitTransferalTransactionResponse > {
208+ const res = this . axiosInstance . post ( '/accounts/transferal/submit' , data ) ;
209+ return this . resolveAxiosData ( res ) ;
210+ }
183211}
0 commit comments