Interface LedgerProto.SendTransactionRequest.TransactionOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
LedgerProto.SendTransactionRequest.Transaction, LedgerProto.SendTransactionRequest.Transaction.Builder
Enclosing class:
LedgerProto.SendTransactionRequest

public static interface LedgerProto.SendTransactionRequest.TransactionOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.protobuf.ByteString
    事务数据内容,字节数组
    com.google.protobuf.ByteString
    任意20字节的地址,用于区分使用同一节点的事务发起者
    long
    正整数,同一from每个nonce应只使用一次,防止重复的事务(可以每次发送事务+1)
    com.google.protobuf.ByteString
    对于通用数据记录不需传递,无意义
    事务类型,目前仅支持通用数据记录,即type为RECORD (0)
    int
    事务类型,目前仅支持通用数据记录,即type为RECORD (0)

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getTypeValue

      int getTypeValue()
       事务类型,目前仅支持通用数据记录,即type为RECORD (0)
       
      .bdware.bdledger.api.TransactionType type = 1;
      Returns:
      The enum numeric value on the wire for type.
    • getType

       事务类型,目前仅支持通用数据记录,即type为RECORD (0)
       
      .bdware.bdledger.api.TransactionType type = 1;
      Returns:
      The type.
    • getFrom

      com.google.protobuf.ByteString getFrom()
       任意20字节的地址,用于区分使用同一节点的事务发起者
       
      bytes from = 2;
      Returns:
      The from.
    • getNonce

      long getNonce()
       正整数,同一from每个nonce应只使用一次,防止重复的事务(可以每次发送事务+1)
       
      uint64 nonce = 3;
      Returns:
      The nonce.
    • getTo

      com.google.protobuf.ByteString getTo()
       对于通用数据记录不需传递,无意义
       
      bytes to = 4;
      Returns:
      The to.
    • getData

      com.google.protobuf.ByteString getData()
       事务数据内容,字节数组
       
      bytes data = 5;
      Returns:
      The data.