Skip to content

Commit

Permalink
Merge pull request #61 from lilpaul/feat/issue-60
Browse files Browse the repository at this point in the history
feat/issue-60
  • Loading branch information
mmahut authored Aug 31, 2022
2 parents b8016c5 + 901aba5 commit 4ab9b6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Blockfrost.Api/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public static class Constants
public const int BURST_COOLDOWN = 10;
public const int BURST_COOLDOWN_INTERVAL = 1000;

public const string API_URL_PREVIEW = "https://cardano-preview.blockfrost.io/api/v0/";
public const string API_URL_PREPROD = "https://cardano-preprod.blockfrost.io/api/v0/";
public const string API_URL_TESTNET = "https://cardano-testnet.blockfrost.io/api/v0/";
public const string API_URL_MAINNET = "https://cardano-mainnet.blockfrost.io/api/v0/";
public const string API_URL_IPFS = "https://ipfs.blockfrost.io/api/v0/";
Expand Down
2 changes: 2 additions & 0 deletions src/Blockfrost.Api/Extensions/BlockfrostServiceExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1290,6 +1290,8 @@ private static void ConfigureHttpClient(HttpClient client, string network, int s

client.BaseAddress = network switch
{
"preview" => new Uri(Constants.API_URL_PREVIEW),
"preprod" => new Uri(Constants.API_URL_PREPROD),
"testnet" => new Uri(Constants.API_URL_TESTNET),
"mainnet" => new Uri(Constants.API_URL_MAINNET),
"ipfs" => new Uri(Constants.API_URL_IPFS),
Expand Down

0 comments on commit 4ab9b6a

Please sign in to comment.