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