Skip to content

Commit

Permalink
Creating script to lock funds into smart contract. issue with Blockfr…
Browse files Browse the repository at this point in the history
…ost await resolution
  • Loading branch information
wattsmainsanglais committed Mar 29, 2024
1 parent 6f3dcde commit 913a087
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ artifacts/
build/
# Aiken's default documentation export
docs/

.vscode
21 changes: 21 additions & 0 deletions hello-world-lock.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import {
Blockfrost,
C,
Constr,
Data,
Lucid,
SpendingValidator,
TxHash,
fromHex,
toHex,
utf8ToHex,
} from "https://deno.land/x/lucid@0.8.3/mod.ts";
import * as cbor from "https://deno.land/x/cbor@v1.4.1/index.js";

const lucid = await Lucid.new(
new Blockfrost(
"https://cardano-preview.blockfrost.io/api/v0",
Deno.env.get("BLOCKFROST_PROJECT_ID")
),
"Preview"
);

0 comments on commit 913a087

Please sign in to comment.