We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47a8bf6 commit 5da34c8Copy full SHA for 5da34c8
lib/bitboxnetwork.ts
@@ -33,6 +33,18 @@ export class BitboxNetwork implements SlpValidator {
33
return this.slp.parseSlpOutputScript(txn.outputs[0]._scriptBuffer);
34
}
35
36
+ async getTransactionDetails(txid: string) {
37
+ let txn: any = (await this.BITBOX.Transaction.details([ txid ]))[0];
38
+ try {
39
+ txn.tokenInfo = await this.getTokenInformation(txid);
40
+ txn.tokenIsValid = await this.validator.isValidSlpTxid(txid);
41
+ } catch(_) {
42
+ txn.tokenInfo = null;
43
+ txn.tokenIsValid = false;
44
+ }
45
+ return txn;
46
47
+
48
async getUtxos(address: string) {
49
// must be a cash or legacy addr
50
let res: AddressUtxoResult;
0 commit comments