X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FStaticPaymentOutputDescriptor.mts;fp=ts%2Fstructs%2FStaticPaymentOutputDescriptor.mts;h=a546cbb0266385710ede6fac59098b62bba376f2;hb=bbf1ef578b7cfe9fc7d3ad8b6626ae6204e370e5;hp=e45f97f3ff5821b8f31cbad537b3f6cf666140ee;hpb=65e786e1912ddad0d749508b8830cf30b37e784e;p=ldk-java diff --git a/ts/structs/StaticPaymentOutputDescriptor.mts b/ts/structs/StaticPaymentOutputDescriptor.mts index e45f97f3..a546cbb0 100644 --- a/ts/structs/StaticPaymentOutputDescriptor.mts +++ b/ts/structs/StaticPaymentOutputDescriptor.mts @@ -383,6 +383,17 @@ export class StaticPaymentOutputDescriptor extends CommonBase { bindings.StaticPaymentOutputDescriptor_set_outpoint(this.ptr, val == null ? 0 : CommonBase.get_ptr_of(val) & ~1); } + /** + * The output which is referenced by the given outpoint + * + * Returns a copy of the field. + */ + public get_output(): TxOut { + const ret: number = bindings.StaticPaymentOutputDescriptor_get_output(this.ptr); + const ret_conv: TxOut = new TxOut(null, ret); + return ret_conv; + } + /** * The output which is referenced by the given outpoint */