From 6d27134ad8bcfa77ab9eef85b8daa644711d00b5 Mon Sep 17 00:00:00 2001 From: "G. Enkh-Amar" <59833320+EnkhAmar@users.noreply.github.com> Date: Sun, 15 Oct 2023 00:08:48 +0800 Subject: [PATCH] Typing for dust transfer (#631) (#650) --- index.d.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/index.d.ts b/index.d.ts index 2ba4c8c5..30599ade 100644 --- a/index.d.ts +++ b/index.d.ts @@ -251,6 +251,21 @@ declare module 'binance-api-node' { userAssetDribblets: UserAssetDribblets[] } + export interface DustTransferResult { + amount: string; + fromAsset: string; + operateTime: number; + serviceChargeAmount: string; + tranId: number; + transferedAmount: string; + } + + export interface DustTransfer { + totalServiceCharge: string + totalTransfered: string + transferResult: DustTransferResult[] + } + export interface DepositHistoryResponse { [index: number]: { insertTime: number @@ -604,6 +619,10 @@ declare module 'binance-api-node' { recvWindow?: number timestamp: number }): DustLog + dustTransfer(options: { + asset: string[], + recvWindow?: number, + }) universalTransfer(options: UniversalTransfer): Promise<{ tranId: number }> universalTransferHistory( options: UniversalTransferHistory,