Skip to content

Commit

Permalink
Merge pull request #4210 from eval-exec/exec/get-cells-rpc-doc
Browse files Browse the repository at this point in the history
Add doc for `get_transactions` and `get_cells` RPC
  • Loading branch information
zhangsoledad authored Nov 1, 2023
2 parents 4da2083 + 185a406 commit a888c13
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2183,6 +2183,8 @@ Returns the live cells collection by the lock or type script.

###### Returns

If the number of objects is less than the requested `limit`, it indicates that these are the last page of get_cells.

* objects:
* output: the fields of an output cell

Expand Down Expand Up @@ -2560,6 +2562,8 @@ Returns the transactions collection by the lock or type script.

###### Returns

If the number of objects is less than the requested `limit`, it indicates that these are the last page of get_transactions.

* objects - enum, ungrouped TxWithCell | grouped TxWithCells
* TxWithCell:
* tx_hash: transaction hash,
Expand Down
5 changes: 5 additions & 0 deletions rpc/src/module/indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ pub trait IndexerRpc {
///
/// ## Returns
///
/// If the number of objects is less than the requested `limit`, it indicates that these are the last page of get_cells.
///
/// * objects:
/// - output: the fields of an output cell
/// - output_data: the cell data
Expand Down Expand Up @@ -409,6 +411,9 @@ pub trait IndexerRpc {
/// * after: pagination parameter, optional
///
/// ## Returns
///
/// If the number of objects is less than the requested `limit`, it indicates that these are the last page of get_transactions.
///
/// * objects - enum, ungrouped TxWithCell | grouped TxWithCells
/// - TxWithCell:
/// - tx_hash: transaction hash,
Expand Down

0 comments on commit a888c13

Please sign in to comment.