Get Chain Info

Usage

get_chain_info(RequestGetChainInfo)

message RequestGetChainInfo {}

Response

Use of get_chain_info(RequestGetChainInfo) returns ResponseGetChainInfo

message ResponseGetChainInfo {
  StatusCode code = 1;
  ChainInfo info = 2;
}
NameData Type
codeStatusCode
infoChainInfo

Get Node Info

Usage

get_node_info(RequestGetNodeInfo)

message RequestGetNodeInfo {}

Response

Use of get_node_info(RequestGetNodeInfo) returns ResponseGetNodeInfo

message ResponseGetNodeInfo {
  StatusCode code = 1;
  NodeInfo info = 2;
}
NameData Type
codeStatusCode
infoNodeInfo

Send Tx

Usage

send_tx(RequestSendTx)

message RequestSendTx {
  Transaction tx = 1;
  WalletInfo wallet = 2;
  string token = 3;
  bool commit = 4;
}
NameData TypeDefaultRequired
txTransactionYes
walletWalletInfoYes
tokenstring""No
commitboolfalseNo

Response

Use of get_tx(RequestSendTx) returns ResponseSendTx

message ResponseSendTx {
  StatusCode code = 1;
  string hash = 2;
}
NameData Type
codeStatusCode
hashstring

Get Block

Usage

get_block(RequestGetBlock)

message RequestGetBlock { uint64 height = 1;
NameData TypeDefaultRequired
heightintYes

Response

Use of get_block(RequestGetBlock) returns ResponseGetBlock

message ResponseGetBlock {
  StatusCode code = 1;
  BlockInfo block = 2;
}
NameData Type
codeStatusCode
blockBlockInfo

Get Blocks

Usage

get_blocks(RequestGetBlocks)

message RequestGetBlocks {
  PageInput paging = 1;
  RangeFilter height_filter = 2;
  bool empty_excluded = 3;
}
NameData TypeDefaultRequired
pagingPageInfonull
height_filterRangeFilternull
empty_excludedboolfalse

Response

Use of get_blocks(RequestGetBlocks) returns ResponseGetBlocks

message ResponseGetBlocks {
  StatusCode code = 1;
  PageInfo page = 2;
  repeated BlockInfoSimple blocks = 3;
}
NameData Type
codeStatusCode
pagePageInfo
blocksrepeated BlockInfoSimple

Get Tx

Usage

get_tx(RequestGetTx)

message RequestGetTx { string hash = 1; }
NameData TypeDefaultRequired
hashstringYes

Response

Use of get_tx(RequestGetTx) returns ResponseGetTx

message ResponseGetTx {
  StatusCode code = 1;
  TransactionInfo info = 2;
}
NameData Type
codeStatusCode
infoTransactionInfo

Multisig

Usage

multisig(RequestMultisig)

message RequestMultisig {
  Transaction tx = 1;
  google.protobuf.Any data = 2;
  WalletInfo wallet = 3;
  string token = 4;
  string delegatee = 5;
}
NameData TypeDefaultRequired
txTransactionNo
dataGoogle.Protobuf.AnyNo
walletWalletInfoYes
tokenstringNo
delegateestring""No

Response

message ResponseMultisig {
  StatusCode code = 1;
  Transaction tx = 2;
}
NameData Type
codeStatusCode
txTransaction