Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: adapted kurtosis client api
Browse files Browse the repository at this point in the history
merklefruit committed Jul 26, 2024
1 parent 2878246 commit c742291
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bolt-kurtosis-client/src/main.rs
Original file line number Diff line number Diff line change
@@ -73,13 +73,13 @@ async fn main() -> Result<()> {

let signature = wallet.sign_hash(&message_digest).await?;
let signature = hex::encode(signature.as_bytes());
let signature_header = format!("{}:0x{}", wallet.address(), &signature);

let request = prepare_rpc_request(
"bolt_inclusionPreconfirmation",
"bolt_requestInclusion",
vec![serde_json::json!({
"slot": target_slot,
"tx": tx_rlp,
"signature": signature,
"targetSlot": target_slot,
"txs": vec![tx_rlp],
})],
);

@@ -90,6 +90,7 @@ async fn main() -> Result<()> {
let response = client
.post(&opts.bolt_sidecar_url)
.header("content-type", "application/json")
.header("x-bolt-signature", signature_header)
.body(serde_json::to_string(&request)?)
.send()
.await?;

0 comments on commit c742291

Please sign in to comment.