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