프로퍼티 | 타입 | 설명 | |
---|---|---|---|
AddBlockAppearance | void | ||
ConnectForReorganize | |||
DisconnectInputs | bool | ||
GetValueSentToMe | ulong | ||
HashTransactionForSignature | byte[] | ||
Transaction | System |
메소드 | 설명 | |
---|---|---|
AddInput ( |
Adds an input directly, with no checking that it's valid.
|
|
AddInput ( TransactionOutput from ) : void |
Adds an input to this transaction that imports value from the given output. Note that this input is NOT complete and after every input is added with addInput() and every output is added with addOutput(), signInputs() must be called to finalize the transaction and finish the inputs off. Otherwise it won't be accepted by the network.
|
|
AddOutput ( TransactionOutput to ) : void |
Adds the given output to this transaction. The output must be completely initialized.
|
|
BitcoinSerializeToStream ( Stream stream ) : void | ||
Equals ( object other ) : bool | ||
GetHashCode ( ) : int | ||
GetValueSentFromMe ( |
Calculates the sum of the inputs that are spending coins with keys in the wallet. This requires the transactions sending coins to those keys to be in the wallet. This method will not attempt to download the blocks containing the input transactions if the key is in the wallet but the transactions are not.
|
|
GetValueSentToMe ( |
Calculates the sum of the outputs that are sending coins to a key in the wallet.
|
|
IsEveryOutputSpent ( ) : bool | ||
SignInputs ( SigHash hashType, |
Once a transaction has some inputs and outputs added, the signatures in the inputs can be calculated. The signature is over the transaction itself, to prove the redeemer actually created that transaction, so we have to do this step last. This method is similar to SignatureHash in script.cpp |
|
ToString ( ) : string | ||
Transaction ( |
Creates a transaction from the given serialized bytes, eg, from a block or a tx network message.
|
|
Transaction ( |
Creates a transaction by reading payload starting from offset bytes in. Length of a transaction is fixed.
|
메소드 | 설명 | |
---|---|---|
Parse ( ) : void |
메소드 | 설명 | |
---|---|---|
AddBlockAppearance ( |
Adds the given block to the internal serializable set of blocks in which this transaction appears. This is used by the wallet to ensure transactions that appear on side chains are recorded properly even though the block stores do not save the transaction data at all.
|
|
ConnectForReorganize ( Transaction>.IDictionary |
Connects all inputs using the provided transactions. If any input cannot be connected returns that input or null on success.
|
|
DisconnectInputs ( ) : bool | ||
GetValueSentToMe ( |
Calculates the sum of the outputs that are sending coins to a key in the wallet. The flag controls whether to include spent outputs or not.
|
|
HashTransactionForSignature ( SigHash type, bool anyoneCanPay ) : byte[] | ||
Transaction ( |
public BitcoinSerializeToStream ( Stream stream ) : void | ||
stream | Stream | |
리턴 | void |
public GetValueSentFromMe ( |
||
wallet | ||
리턴 | ulong |
public SignInputs ( SigHash hashType, |
||
hashType | SigHash | This should always be set to SigHash.ALL currently. Other types are unused. |
wallet | A wallet is required to fetch the keys needed for signing. | |
리턴 | void |
public Transaction ( |
||
@params | ||
payloadBytes | byte | |
리턴 | System |
public Transaction ( |
||
@params | ||
payload | byte | |
offset | int | |
리턴 | System |