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;
}
Name | Data Type |
---|---|
code | StatusCode |
info | ChainInfo |
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;
}
Name | Data Type |
---|---|
code | StatusCode |
info | NodeInfo |
Send Tx
Usage
send_tx(RequestSendTx)
message RequestSendTx {
Transaction tx = 1;
WalletInfo wallet = 2;
string token = 3;
bool commit = 4;
}
Name | Data Type | Default | Required |
---|---|---|---|
tx | Transaction | Yes | |
wallet | WalletInfo | Yes | |
token | string | "" | No |
commit | bool | false | No |
Response
Use of get_tx(RequestSendTx)
returns ResponseSendTx
message ResponseSendTx {
StatusCode code = 1;
string hash = 2;
}
Name | Data Type |
---|---|
code | StatusCode |
hash | string |
Get Block
Usage
get_block(RequestGetBlock)
message RequestGetBlock { uint64 height = 1;
Name | Data Type | Default | Required |
---|---|---|---|
height | int | Yes |
Response
Use of get_block(RequestGetBlock)
returns ResponseGetBlock
message ResponseGetBlock {
StatusCode code = 1;
BlockInfo block = 2;
}
Name | Data Type |
---|---|
code | StatusCode |
block | BlockInfo |
Get Blocks
Usage
get_blocks(RequestGetBlocks)
message RequestGetBlocks {
PageInput paging = 1;
RangeFilter height_filter = 2;
bool empty_excluded = 3;
}
Name | Data Type | Default | Required |
---|---|---|---|
paging | PageInfo | null | |
height_filter | RangeFilter | null | |
empty_excluded | bool | false |
Response
Use of get_blocks(RequestGetBlocks)
returns ResponseGetBlocks
message ResponseGetBlocks {
StatusCode code = 1;
PageInfo page = 2;
repeated BlockInfoSimple blocks = 3;
}
Name | Data Type |
---|---|
code | StatusCode |
page | PageInfo |
blocks | repeated BlockInfoSimple |
Get Tx
Usage
get_tx(RequestGetTx)
message RequestGetTx { string hash = 1; }
Name | Data Type | Default | Required |
---|---|---|---|
hash | string | Yes |
Response
Use of get_tx(RequestGetTx)
returns ResponseGetTx
message ResponseGetTx {
StatusCode code = 1;
TransactionInfo info = 2;
}
Name | Data Type |
---|---|
code | StatusCode |
info | TransactionInfo |
Multisig
Usage
multisig(RequestMultisig)
message RequestMultisig {
Transaction tx = 1;
google.protobuf.Any data = 2;
WalletInfo wallet = 3;
string token = 4;
string delegatee = 5;
}
Name | Data Type | Default | Required |
---|---|---|---|
tx | Transaction | No | |
data | Google.Protobuf.Any | No | |
wallet | WalletInfo | Yes | |
token | string | No | |
delegatee | string | "" | No |
Response
message ResponseMultisig {
StatusCode code = 1;
Transaction tx = 2;
}
Name | Data Type |
---|---|
code | StatusCode |
tx | Transaction |