Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
msanlisavas authored Jul 1, 2024
1 parent 8d25f17 commit 61a1702
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ var blockData = await restClient.Mainnet.Block.GetBlockAsync("block-hash");
"ApiKey": "your-api-key"
}
```

#### Startup.cs
```
context.Services.AddSingleton(resolver =>
{
var apiKey = configuration.GetSection("CsprCloud:ApiKey").Value;
return new CasperCloudRestClient(new CasperCloudClientConfig(apiKey));
});
```
Then call using di
#### Then call using di
```
public class IndexModel : PageModel
{
Expand Down

0 comments on commit 61a1702

Please sign in to comment.