129 lines
2.4 KiB
Java
129 lines
2.4 KiB
Java
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||
// source: bdledger/api/common.proto
|
||
|
||
package bdledger.api.grpc.common;
|
||
|
||
public interface TransactionOrBuilder extends
|
||
// @@protoc_insertion_point(interface_extends:bdledger.api.Transaction)
|
||
com.google.protobuf.MessageOrBuilder {
|
||
|
||
/**
|
||
* <pre>
|
||
* 事务所在的区块的哈希,当事务处于待确认状态时为`null`
|
||
* </pre>
|
||
*
|
||
* <code>bytes block_hash = 1;</code>
|
||
* @return The blockHash.
|
||
*/
|
||
com.google.protobuf.ByteString getBlockHash();
|
||
|
||
/**
|
||
* <pre>
|
||
* 事务在区块中的位置 index,当事务处于待确认状态时为`null`
|
||
* </pre>
|
||
*
|
||
* <code>uint32 index = 2;</code>
|
||
* @return The index.
|
||
*/
|
||
int getIndex();
|
||
|
||
/**
|
||
* <pre>
|
||
* 事务的哈希
|
||
* </pre>
|
||
*
|
||
* <code>bytes hash = 3;</code>
|
||
* @return The hash.
|
||
*/
|
||
com.google.protobuf.ByteString getHash();
|
||
|
||
/**
|
||
* <pre>
|
||
* 事务类型
|
||
* </pre>
|
||
*
|
||
* <code>.bdledger.api.TransactionType type = 4;</code>
|
||
* @return The enum numeric value on the wire for type.
|
||
*/
|
||
int getTypeValue();
|
||
/**
|
||
* <pre>
|
||
* 事务类型
|
||
* </pre>
|
||
*
|
||
* <code>.bdledger.api.TransactionType type = 4;</code>
|
||
* @return The type.
|
||
*/
|
||
bdledger.api.grpc.common.TransactionType getType();
|
||
|
||
/**
|
||
* <pre>
|
||
* 发送账户地址
|
||
* </pre>
|
||
*
|
||
* <code>bytes from = 5;</code>
|
||
* @return The from.
|
||
*/
|
||
com.google.protobuf.ByteString getFrom();
|
||
|
||
/**
|
||
* <pre>
|
||
* 这条事务之前发送者所发送的事务数量
|
||
* </pre>
|
||
*
|
||
* <code>uint64 nonce = 6;</code>
|
||
* @return The nonce.
|
||
*/
|
||
long getNonce();
|
||
|
||
/**
|
||
* <pre>
|
||
* 接收账户地址,或者调用的合约地址,或者`null`如为合约创建
|
||
* </pre>
|
||
*
|
||
* <code>bytes to = 7;</code>
|
||
* @return The to.
|
||
*/
|
||
com.google.protobuf.ByteString getTo();
|
||
|
||
/**
|
||
* <pre>
|
||
* 数据或合约代码
|
||
* </pre>
|
||
*
|
||
* <code>bytes data = 8;</code>
|
||
* @return The data.
|
||
*/
|
||
com.google.protobuf.ByteString getData();
|
||
|
||
/**
|
||
* <pre>
|
||
* ECDSA recovery id
|
||
* </pre>
|
||
*
|
||
* <code>bytes v = 9;</code>
|
||
* @return The v.
|
||
*/
|
||
com.google.protobuf.ByteString getV();
|
||
|
||
/**
|
||
* <pre>
|
||
* ECDSA signature r
|
||
* </pre>
|
||
*
|
||
* <code>bytes r = 10;</code>
|
||
* @return The r.
|
||
*/
|
||
com.google.protobuf.ByteString getR();
|
||
|
||
/**
|
||
* <pre>
|
||
* ECDSA signature s
|
||
* </pre>
|
||
*
|
||
* <code>bytes s = 11;</code>
|
||
* @return The s.
|
||
*/
|
||
com.google.protobuf.ByteString getS();
|
||
}
|