-
Signature:
{{ signedTextSignature }}
-
Key/Address:
{{ signedTextKey }}
-
Network:
{{ signedTextNetwork }}
-
Is Signature Valid:
{{ signedTextValidSignature }}
+
+
Transaction ID:
{{ transactionResult.transactionId }}
+
Transaction HEX:
{{ transactionResult.transactionHex }}
-
diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index f96c0a4..5aae726 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -151,14 +151,16 @@ export class AppComponent implements OnInit {
this.nostrDecrypted = content;
}
+ transactionResult: any = undefined;
+
async sendTransaction() {
const result: any = await this.provider!.request({
method: 'transaction.send',
params: [
{
recipients: [
- { hint: 'Swap', address: 'yRZBBWkf4THjC5qqfvoJaV2qn4pLJnkHH9', amount: 100000000 },
- { hint: 'Fee Service', address: 'pRZBBWkf4THjC5qqfvoJaV2qn4pLJnkHH9', amount: 20000000 },
+ { hint: 'Swap', address: 'CMrc2rFsPd9VnxPiHvN2wHFVNfNd9vY8Ze', amount: 100000000 },
+ { hint: 'Fee Service', address: 'CMrc2rFsPd9VnxPiHvN2wHFVNfNd9vY8Ze', amount: 20000000 },
],
// data: 'op_return',
feeRate: 'medium',
@@ -166,8 +168,11 @@ export class AppComponent implements OnInit {
},
],
});
+
console.log('Result:', result);
+ this.transactionResult = result;
+
// this.signedTextKey = result.key;
// this.signedTextSignature = result.response.signature;
// this.signedTextNetwork = result.network;