Skip to content

Commit

Permalink
Merge pull request #123 from eval-exec/exec/support-include-tx-pool
Browse files Browse the repository at this point in the history
Add `include_tx_pool: Option<bool>` param to `get_live_cell`' RPC
  • Loading branch information
quake authored Jun 26, 2024
2 parents 1a786c3 + 7145173 commit 0aab156
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ckb-sdk"
version = "3.2.0"
version = "3.2.1"
authors = [ "Linfeng Qian <[email protected]>", "Nervos Core Dev <[email protected]>" ]
edition = "2018"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions src/rpc/ckb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<CellWithStatus, crate::rpc::RpcError> {
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,
Expand Down

0 comments on commit 0aab156

Please sign in to comment.