Skip to main content

BitcoinInput

see: https://en.bitcoin.it/wiki/Transaction#Input

type BitcoinInput {
address: String!
txId: String!
outputIndex: Int!
script: String!
sequence: String!
value: Int!
publicKeyProvenanceData: BitcoinPublicKeyProvenance!
unverifiedDigestData: TransactionDigestData!
}

Fields

BitcoinInput.address ● String! non-null scalar

The address of the UTXO

BitcoinInput.txId ● String! non-null scalar

The hash of the transaction that generated the UTXO

BitcoinInput.outputIndex ● Int! non-null scalar

The specific output in the referenced transaction id above

BitcoinInput.script ● String! non-null scalar

public key + signature over the hash of the transaction

BitcoinInput.sequence ● String! non-null scalar

Indicates if the transaction is final. Max value indicates finality (0xFFFFFFFF)

BitcoinInput.value ● Int! non-null scalar

The amount of satoshi in the UTXO

BitcoinInput.publicKeyProvenanceData ● BitcoinPublicKeyProvenance! non-null object

The provenance signature data for the address of the utxo

BitcoinInput.unverifiedDigestData ● TransactionDigestData! non-null object

IMPORTANT: This should only be used to verify that the digest you created from the transaction input is correct. NEVER sign this digest without verifying!

Member Of

BitcoinTransaction object