@@ -723,7 +723,13 @@ DEV_KEYS = '{
723723 }
724724 return { cr , outpoints };
725725 }
726- static async fundWalletFromP2PKHOutpoints(wallet : WalletInterface , outpoints : string [], p2pkhKey : KeyPairAddress , inputBEEF ? : BEEF ) {
726+ static async fundWalletFromP2PKHOutpoints(wallet : WalletInterface , outpoints : string [], p2pkhKey : KeyPairAddress , inputBEEF ? : BEEF ): Promise <{
727+ outpoint: string ;
728+ txid? : string ;
729+ success: boolean ;
730+ error? : string ;
731+ }[]> {
732+ return _fundWalletFromP2PKHOutpoints (wallet , outpoints , p2pkhKey , Setup .getUnlockP2PKH .bind (Setup ), inputBEEF );
727733 }
728734 static async createWalletKnex(args : SetupWalletKnexArgs ): Promise <SetupWalletKnex > {
729735 const wo = await Setup .createWallet (args );
@@ -777,7 +783,7 @@ DEV_KEYS = '{
777783}
778784```
779785
780- See also: [Chain](./client.md#type-chain), [KeyPairAddress](./setup.md#interface-keypairaddress), [Monitor](./monitor.md#class-monitor), [PrivilegedKeyManager](./client.md#class-privilegedkeymanager), [ScriptTemplateUnlock](./client.md#interface-scripttemplateunlock), [Services](./services.md#class-services), [SetupEnv](./setup.md#interface-setupenv), [SetupWallet](./setup.md#interface-setupwallet), [SetupWalletArgs](./setup.md#interface-setupwalletargs), [SetupWalletClient](./setup.md#interface-setupwalletclient), [SetupWalletClientArgs](./setup.md#interface-setupwalletclientargs), [SetupWalletKnex](./setup.md#interface-setupwalletknex), [SetupWalletKnexArgs](./setup.md#interface-setupwalletknexargs), [SetupWalletMySQLArgs](./setup.md#interface-setupwalletmysqlargs), [SetupWalletSQLiteArgs](./setup.md#interface-setupwalletsqliteargs), [StorageClient](./storage.md#class-storageclient), [StorageKnex](./storage.md#class-storageknex), [WERR_INVALID_OPERATION](./client.md#class-werr_invalid_operation), [Wallet](./client.md#class-wallet), [WalletStorageManager](./storage.md#class-walletstoragemanager), [createAction](./storage.md#function-createaction), [verifyTruthy](./client.md#function-verifytruthy)
786+ See also: [Chain](./client.md#type-chain), [KeyPairAddress](./setup.md#interface-keypairaddress), [Monitor](./monitor.md#class-monitor), [PrivilegedKeyManager](./client.md#class-privilegedkeymanager), [ScriptTemplateUnlock](./client.md#interface-scripttemplateunlock), [Services](./services.md#class-services), [SetupEnv](./setup.md#interface-setupenv), [SetupWallet](./setup.md#interface-setupwallet), [SetupWalletArgs](./setup.md#interface-setupwalletargs), [SetupWalletClient](./setup.md#interface-setupwalletclient), [SetupWalletClientArgs](./setup.md#interface-setupwalletclientargs), [SetupWalletKnex](./setup.md#interface-setupwalletknex), [SetupWalletKnexArgs](./setup.md#interface-setupwalletknexargs), [SetupWalletMySQLArgs](./setup.md#interface-setupwalletmysqlargs), [SetupWalletSQLiteArgs](./setup.md#interface-setupwalletsqliteargs), [StorageClient](./storage.md#class-storageclient), [StorageKnex](./storage.md#class-storageknex), [WERR_INVALID_OPERATION](./client.md#class-werr_invalid_operation), [Wallet](./client.md#class-wallet), [WalletStorageManager](./storage.md#class-walletstoragemanager), [createAction](./storage.md#function-createaction), [fundWalletFromP2PKHOutpoints](./client.md#function-fundwalletfromp2pkhoutpoints), [verifyTruthy](./client.md#function-verifytruthy)
781787
782788###### Method createStorageKnex
783789
@@ -1119,7 +1125,13 @@ export abstract class SetupClient {
11191125 }
11201126 return { cr , outpoints };
11211127 }
1122- static async fundWalletFromP2PKHOutpoints(wallet : WalletInterface , outpoints : string [], p2pkhKey : KeyPairAddress , inputBEEF ? : BEEF ) {
1128+ static async fundWalletFromP2PKHOutpoints(wallet : WalletInterface , outpoints : string [], p2pkhKey : KeyPairAddress , inputBEEF ? : BEEF ): Promise <{
1129+ outpoint: string ;
1130+ txid? : string ;
1131+ success: boolean ;
1132+ error? : string ;
1133+ }[]> {
1134+ return _fundWalletFromP2PKHOutpoints (wallet , outpoints , p2pkhKey , SetupClient .getUnlockP2PKH .bind (SetupClient ), inputBEEF );
11231135 }
11241136 static async createWalletIdb(args : SetupWalletIdbArgs ): Promise <SetupWalletIdb > {
11251137 const wo = await SetupClient .createWallet (args );
@@ -1138,7 +1150,7 @@ export abstract class SetupClient {
11381150}
11391151```
11401152
1141- See also: [ Chain] ( ./client.md#type-chain ) , [ KeyPairAddress] ( ./setup.md#interface-keypairaddress ) , [ Monitor] ( ./monitor.md#class-monitor ) , [ PrivilegedKeyManager] ( ./client.md#class-privilegedkeymanager ) , [ ScriptTemplateUnlock] ( ./client.md#interface-scripttemplateunlock ) , [ Services] ( ./services.md#class-services ) , [ SetupClientWalletArgs] ( ./setup.md#interface-setupclientwalletargs ) , [ SetupClientWalletClientArgs] ( ./setup.md#interface-setupclientwalletclientargs ) , [ SetupWallet] ( ./setup.md#interface-setupwallet ) , [ SetupWalletClient] ( ./setup.md#interface-setupwalletclient ) , [ SetupWalletIdb] ( ./setup.md#interface-setupwalletidb ) , [ SetupWalletIdbArgs] ( ./setup.md#interface-setupwalletidbargs ) , [ StorageClient] ( ./storage.md#class-storageclient ) , [ StorageIdb] ( ./storage.md#class-storageidb ) , [ Wallet] ( ./client.md#class-wallet ) , [ WalletStorageManager] ( ./storage.md#class-walletstoragemanager ) , [ createAction] ( ./storage.md#function-createaction )
1153+ See also: [ Chain] ( ./client.md#type-chain ) , [ KeyPairAddress] ( ./setup.md#interface-keypairaddress ) , [ Monitor] ( ./monitor.md#class-monitor ) , [ PrivilegedKeyManager] ( ./client.md#class-privilegedkeymanager ) , [ ScriptTemplateUnlock] ( ./client.md#interface-scripttemplateunlock ) , [ Services] ( ./services.md#class-services ) , [ SetupClientWalletArgs] ( ./setup.md#interface-setupclientwalletargs ) , [ SetupClientWalletClientArgs] ( ./setup.md#interface-setupclientwalletclientargs ) , [ SetupWallet] ( ./setup.md#interface-setupwallet ) , [ SetupWalletClient] ( ./setup.md#interface-setupwalletclient ) , [ SetupWalletIdb] ( ./setup.md#interface-setupwalletidb ) , [ SetupWalletIdbArgs] ( ./setup.md#interface-setupwalletidbargs ) , [ StorageClient] ( ./storage.md#class-storageclient ) , [ StorageIdb] ( ./storage.md#class-storageidb ) , [ Wallet] ( ./client.md#class-wallet ) , [ WalletStorageManager] ( ./storage.md#class-walletstoragemanager ) , [ createAction] ( ./storage.md#function-createaction ) , [ fundWalletFromP2PKHOutpoints ] ( ./client.md#function-fundwalletfromp2pkhoutpoints )
11421154
11431155###### Method createStorageIdb
11441156
0 commit comments