Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into feature/ui-update
Browse files Browse the repository at this point in the history
  • Loading branch information
jimcase committed Sep 27, 2024
2 parents 76cdd17 + f02fb4d commit 01e06a2
Show file tree
Hide file tree
Showing 2 changed files with 679 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ public class CardanoSubmitApiBlockchainTransactionSubmissionService implements B
@Value("${cardano.tx.submit.api.url}")
private String cardanoSubmitApiUrl;

@Value("${blockfrost.api.key}")
private String blockfrostApiKey;

@Override
@SneakyThrows
public String submitTransaction(byte[] txData) {
var txTransactionSubmitPostRequest = HttpRequest.newBuilder()
.uri(URI.create(cardanoSubmitApiUrl))
.POST(HttpRequest.BodyPublishers.ofByteArray(txData))
.header("Content-Type", "application/cbor")
.header("project_id", blockfrostApiKey)
.build();

var r = httpClient.send(txTransactionSubmitPostRequest, HttpResponse.BodyHandlers.ofString());
Expand Down
Loading

0 comments on commit 01e06a2

Please sign in to comment.