-
-
Notifications
You must be signed in to change notification settings - Fork 0
DashApi
martiliones edited this page Jun 12, 2023
·
1 revision
Bitcoin base multiplier
-
Type
interface DashApi { multiplier: 100000000; }
Creates base bitcoin transaction
-
Type
interface DashApi { createTransaction( address: string, amount: number, fee: number ): Promise<SignedJsonTx>; }
-
References
Gets the account's balance
-
Type
interface DashApi { getBalance(): Promise<number>; }
Gets fee
-
Type
interface DashApi { getFee(): number; }
Gets transaction by the specified id
-
Type
interface DashApi { getTransaction(transactionId: string): DashTransaction; } type DashTransaction = { vin: { addr: string; value: number }[]; } & BitcoinBaseTransaction;
-
References
Gets list of transactions by specified filters
-
Type
interface DashApi { getTransactions(options?: { excludes: string[]; }): { hasMore: boolean; items: DashTransaction[] }; } type DashTransaction = { vin: { addr: string; value: number }[]; } & BitcoinBaseTransaction;
-
References
Gets unspents
-
Type
interface DashApi { getUnspents(address: string): Promise<DashUnspents>; } interface DashUnspents { amount: number; txid: string; vout: { address: string; value: number }[]; }
Sends a signed transaction
-
Type
interface DashApi { sendTransaction(signedTx: any): Promise<any>; }