File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
// Import PayjoinURL from the 'payjoin-react-native' package
2
- import { PayjoinURL , UTXO } from 'payjoin-react-native' ;
2
+ import { PayjoinURL } from 'payjoin-react-native' ;
3
+ import { UTXO } from 'silent-payments' ;
3
4
4
5
export const PayJoin = ( url : string ) => {
5
6
// Create a PayjoinURL instance
@@ -14,7 +15,7 @@ export const sendPSBT = async (psbt: string) => {
14
15
// Send the PSBT to the payjoin server
15
16
const response = await fetch ( 'https://payjoin.example.com/payjoin' , {
16
17
method : 'POST' ,
17
- headers
18
+ Headers
18
19
} ) ;
19
20
return response ;
20
21
} // Reaceive the response from the payjoin server
@@ -29,5 +30,8 @@ const utxo: UTXO = {
29
30
value : 1000000 ,
30
31
script : 'scriptPubKey' ,
31
32
}
33
+
34
+ // Use the utxo variable
35
+ console . log ( utxo )
32
36
return response ; // Export PayJoin and PayjoinURL
33
37
export { PayjoinURL } ;
You can’t perform that action at this time.
0 commit comments