From a0cea6c9fa6aa9cc6e21d286a1681baae5d5d3d5 Mon Sep 17 00:00:00 2001 From: nicolas <48695862+merklefruit@users.noreply.github.com> Date: Thu, 14 Nov 2024 16:25:16 +0100 Subject: [PATCH] chore: update bolt rpc api endpoint according to versioned spec --- bolt-cli/src/cli.rs | 6 +++++- bolt-cli/src/commands/send.rs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bolt-cli/src/cli.rs b/bolt-cli/src/cli.rs index 57cd595e..d54665b6 100644 --- a/bolt-cli/src/cli.rs +++ b/bolt-cli/src/cli.rs @@ -79,7 +79,11 @@ pub struct PubkeysCommand { #[derive(Debug, Clone, Parser)] pub struct SendCommand { /// Bolt RPC URL to send requests to and fetch lookahead info from. - #[clap(long, env = "BOLT_RPC_URL", default_value = "http://135.181.191.125:58017/rpc")] + #[clap( + long, + env = "BOLT_RPC_URL", + default_value = "https://rpc-holesky.bolt.chainbound.io/rpc" + )] pub bolt_rpc_url: Url, /// The private key to sign the transaction with. diff --git a/bolt-cli/src/commands/send.rs b/bolt-cli/src/commands/send.rs index 796dcfb7..116ced38 100644 --- a/bolt-cli/src/commands/send.rs +++ b/bolt-cli/src/commands/send.rs @@ -22,7 +22,7 @@ use tracing::info; use crate::cli::SendCommand; /// Path to the lookahead endpoint on the Bolt RPC server. -const BOLT_LOOKAHEAD_PATH: &str = "proposers/lookahead"; +const BOLT_LOOKAHEAD_PATH: &str = "/api/v1/proposers/lookahead"; impl SendCommand { /// Run the `send` command.