diff --git a/rpc/README.md b/rpc/README.md index fe16348215..e50b65674f 100644 --- a/rpc/README.md +++ b/rpc/README.md @@ -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 @@ -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, diff --git a/rpc/src/module/indexer.rs b/rpc/src/module/indexer.rs index 9a492a8228..ea7578b9e3 100644 --- a/rpc/src/module/indexer.rs +++ b/rpc/src/module/indexer.rs @@ -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 @@ -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,