Show / Hide Table of Contents

Interface IInvoice

Represents a pre-signed transaction request.
This structure is passed to each configured Signatory and signatory callback method to be given the opportunity to sign the request before submitting it to the netwwork. Typically, the signatory will use its private key to sign the TxBytes serialized representation of the transaciton request.
This is the same series of bytes that are sent to the network along with the signatures collected from the signatories.

Namespace: Hashgraph
Assembly: Hashgraph.dll
Syntax
public interface IInvoice

Properties

| Improve this Doc View Source

Memo

The memo associated with this transaction, for convenience.

Declaration
string Memo { get; }
Property Value
Type Description
String
| Improve this Doc View Source

TxBytes

The bytes created by serializing the request, including necessary cryptocurrency transfers, into the underlying network's protobuf format. This is the exact sequence of bytes that will be submitted to the network along side the signatures created authorizing the request.

Declaration
ReadOnlyMemory<byte> TxBytes { get; }
Property Value
Type Description
ReadOnlyMemory<Byte>
| Improve this Doc View Source

TxId

The transaction ID assigned to this request. It, by its nature, contains a timestamp and expiration. Any callback methods must return from signing this transaction with enough time for the transaction to be submitted to the network with sufficient time to process before becomming invalid.

Declaration
TxId TxId { get; }
Property Value
Type Description
TxId

Methods

| Improve this Doc View Source

AddSignature(KeyType, ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>)

Adds a signature to the internal list of signatures authorizing this request.

Declaration
void AddSignature(KeyType type, ReadOnlyMemory<byte> publicPrefix, ReadOnlyMemory<byte> signature)
Parameters
Type Name Description
KeyType type

The type of signing key used for this signature.

ReadOnlyMemory<Byte> publicPrefix

The first few bytes of the public key associated with this signature. This helps the system match signing requrements held internally in the form of public keys with the signatures provided.

ReadOnlyMemory<Byte> signature

The bytes representing the signature corresponding to the associated private/public key.

  • Improve this Doc
  • View Source
In This Article
Back to top .NET Client Library for Hedera Hashgraph