TransactionInput.ts
TransactionInput overview
Table of contents
conversion
fromCBORBytes
Convert CBOR bytes to TransactionInput.
Signature
export declare const fromCBORBytes: (bytes: Uint8Array, options?: CBOR.CodecOptions) => TransactionInputAdded in v2.0.0
fromCBORHex
Convert CBOR hex string to TransactionInput.
Signature
export declare const fromCBORHex: (hex: string, options?: CBOR.CodecOptions) => TransactionInputAdded in v2.0.0
toCBORBytes
Convert TransactionInput to CBOR bytes.
Signature
export declare const toCBORBytes: (data: TransactionInput, options?: CBOR.CodecOptions) => anyAdded in v2.0.0
toCBORHex
Convert TransactionInput to CBOR hex string.
Signature
export declare const toCBORHex: (data: TransactionInput, options?: CBOR.CodecOptions) => stringAdded in v2.0.0
model
TransactionInput (class)
Schema for TransactionInput representing a transaction input with transaction id and index.
transaction_input = [transaction_id : transaction_id, index : uint .size 2]Signature
export declare class TransactionInputAdded in v2.0.0
toJSON (method)
Signature
toJSON()toString (method)
Signature
toString(): string[Inspectable.NodeInspectSymbol] (method)
Signature
[Inspectable.NodeInspectSymbol](): unknown[Equal.symbol] (method)
Signature
[Equal.symbol](that: unknown): boolean[Hash.symbol] (method)
Signature
[Hash.symbol](): numberpredicates
isTransactionInput
Check if the given value is a valid TransactionInput.
Signature
export declare const isTransactionInput: (u: unknown, overrideOptions?: ParseOptions | number) => u is TransactionInputAdded in v2.0.0
schemas
FromCBORBytes
CBOR bytes transformation schema for TransactionInput.
Signature
export declare const FromCBORBytes: (
options?: CBOR.CodecOptions
) => Schema.transform<
Schema.transformOrFail<
typeof Schema.Uint8ArrayFromSelf,
Schema.declare<CBOR.CBOR, CBOR.CBOR, readonly [], never>,
never
>,
Schema.transformOrFail<
Schema.Tuple2<typeof Schema.Uint8ArrayFromSelf, typeof Schema.BigIntFromSelf>,
Schema.SchemaClass<TransactionInput, TransactionInput, never>,
never
>
>Added in v2.0.0
FromCBORHex
CBOR hex transformation schema for TransactionInput.
Signature
export declare const FromCBORHex: (
options?: CBOR.CodecOptions
) => Schema.transform<
Schema.Schema<Uint8Array, string, never>,
Schema.transform<
Schema.transformOrFail<
typeof Schema.Uint8ArrayFromSelf,
Schema.declare<CBOR.CBOR, CBOR.CBOR, readonly [], never>,
never
>,
Schema.transformOrFail<
Schema.Tuple2<typeof Schema.Uint8ArrayFromSelf, typeof Schema.BigIntFromSelf>,
Schema.SchemaClass<TransactionInput, TransactionInput, never>,
never
>
>
>Added in v2.0.0
FromCDDL
CDDL schema for TransactionInput.
Signature
export declare const FromCDDL: Schema.transformOrFail<
Schema.Tuple2<typeof Schema.Uint8ArrayFromSelf, typeof Schema.BigIntFromSelf>,
Schema.SchemaClass<TransactionInput, TransactionInput, never>,
never
>Added in v2.0.0
testing
arbitrary
FastCheck arbitrary for TransactionInput instances.
Signature
export declare const arbitrary: FastCheck.Arbitrary<TransactionInput>Added in v2.0.0
utils
CDDLSchema
Signature
export declare const CDDLSchema: Schema.Tuple2<typeof Schema.Uint8ArrayFromSelf, typeof Schema.BigIntFromSelf>