diff --git a/Cargo.toml b/Cargo.toml index fc2be1b3..ca9638e7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ckb-sdk" -version = "3.2.0" +version = "3.2.1" authors = [ "Linfeng Qian ", "Nervos Core Dev " ] edition = "2018" license = "MIT" diff --git a/README.md b/README.md index b74bc965..bdc6128d 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ These features allow for seamless interaction with CKB and facilitate the develo ```toml # Cargo.toml [dependencies] -ckb-sdk = "3.2.0" +ckb-sdk = "3.2.1" ``` ## Build diff --git a/src/rpc/ckb.rs b/src/rpc/ckb.rs index 9d97adeb..881acee9 100644 --- a/src/rpc/ckb.rs +++ b/src/rpc/ckb.rs @@ -211,6 +211,18 @@ impl CkbRpcClient { ) } + pub fn get_live_cell_with_include_tx_pool( + &self, + out_point: OutPoint, + with_data: bool, + include_tx_pool: bool, + ) -> Result { + self.post::<_, CellWithStatus>( + "get_live_cell", + (out_point, with_data, Some(include_tx_pool)), + ) + } + // get transaction with only_committed=true pub fn get_only_committed_transaction( &self,