pub async fn new_rest_chain_service(
url: String,
network: Network,
api_type: ChainApiType,
credentials: Option<Credentials>,
) -> Arc<dyn BitcoinChainService>Expand description
Constructs a shareable REST-based BitcoinChainService.
Pass the returned Arc to multiple SdkBuilders via
SdkBuilder::with_chain_service
to reuse a single underlying HTTP client (and its connection pool) across
SDK instances. All SDKs sharing the service must use the same network.
For one-off, non-shared use, prefer
SdkBuilder::with_rest_chain_service.