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