Interface CommonProto.TransactionOrBuilder

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

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

    Modifier and Type
    Method
    Description
    com.google.protobuf.ByteString
    事务所在的区块的哈希,当事务处于待确认状态时为`null`
    long
    事务所在的区块产生时的 UNIX 时间戳,单位为秒
    com.google.protobuf.ByteString
    数据或合约代码
    com.google.protobuf.ByteString
    发送账户地址
    com.google.protobuf.ByteString
    事务的哈希
    int
    事务在区块中的位置 index,当事务处于待确认状态时为`null`
    long
    这条事务之前发送者所发送的事务数量
    com.google.protobuf.ByteString
    ECDSA signature r
    com.google.protobuf.ByteString
    ECDSA signature s
    com.google.protobuf.ByteString
    接收账户地址,或者调用的合约地址,或者`null`如为合约创建
    事务类型
    int
    事务类型
    com.google.protobuf.ByteString
    ECDSA recovery id

    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

    • getBlockHash

      com.google.protobuf.ByteString getBlockHash()
       事务所在的区块的哈希,当事务处于待确认状态时为`null`
       
      bytes block_hash = 1;
      Returns:
      The blockHash.
    • getBlockTimestamp

      long getBlockTimestamp()
       事务所在的区块产生时的 UNIX 时间戳,单位为秒
       
      int64 block_timestamp = 2;
      Returns:
      The blockTimestamp.
    • getIndex

      int getIndex()
       事务在区块中的位置 index,当事务处于待确认状态时为`null`
       
      uint32 index = 3;
      Returns:
      The index.
    • getHash

      com.google.protobuf.ByteString getHash()
       事务的哈希
       
      bytes hash = 4;
      Returns:
      The hash.
    • getTypeValue

      int getTypeValue()
       事务类型
       
      .bdware.bdledger.api.TransactionType type = 5;
      Returns:
      The enum numeric value on the wire for type.
    • getType

       事务类型
       
      .bdware.bdledger.api.TransactionType type = 5;
      Returns:
      The type.
    • getFrom

      com.google.protobuf.ByteString getFrom()
       发送账户地址
       
      bytes from = 6;
      Returns:
      The from.
    • getNonce

      long getNonce()
       这条事务之前发送者所发送的事务数量
       
      uint64 nonce = 7;
      Returns:
      The nonce.
    • getTo

      com.google.protobuf.ByteString getTo()
       接收账户地址,或者调用的合约地址,或者`null`如为合约创建
       
      bytes to = 8;
      Returns:
      The to.
    • getData

      com.google.protobuf.ByteString getData()
       数据或合约代码
       
      bytes data = 9;
      Returns:
      The data.
    • getV

      com.google.protobuf.ByteString getV()
       ECDSA recovery id
       
      bytes v = 10;
      Returns:
      The v.
    • getR

      com.google.protobuf.ByteString getR()
       ECDSA signature r
       
      bytes r = 11;
      Returns:
      The r.
    • getS

      com.google.protobuf.ByteString getS()
       ECDSA signature s
       
      bytes s = 12;
      Returns:
      The s.