Package org.bdware.bdledger.api.grpc.pb
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 TypeMethodDescriptioncom.google.protobuf.ByteStringgetData()事务数据内容,字节数组com.google.protobuf.ByteStringgetFrom()任意20字节的地址,用于区分使用同一节点的事务发起者longgetNonce()正整数,同一from每个nonce应只使用一次,防止重复的事务(可以每次发送事务+1)com.google.protobuf.ByteStringgetTo()对于通用数据记录不需传递,无意义getType()事务类型,目前仅支持通用数据记录,即type为RECORD (0)int事务类型,目前仅支持通用数据记录,即type为RECORD (0)Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods 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
CommonProto.TransactionType 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.
-