Skip to content

Commit a189e7d

Browse files
committed
Fix blockfrost context in readme
1 parent 2c5b23a commit a189e7d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ To learn more details, go to the [DApp page](https://github.com/cffls/pycardano/
7676
```python
7777
"""Build a transaction using transaction builder"""
7878

79+
from blockfrost import ApiUrls
7980
from pycardano import *
8081

8182
# Use testnet
@@ -94,7 +95,7 @@ svk = StakeVerificationKey.from_signing_key(ssk)
9495
address = Address(pvk.hash(), svk.hash(), network)
9596

9697
# Create a BlockFrost chain context
97-
context = BlockFrostChainContext("your_blockfrost_project_id", network)
98+
context = BlockFrostChainContext("your_blockfrost_project_id", base_url=ApiUrls.preprod.value)
9899

99100
# Create a transaction builder
100101
builder = TransactionBuilder(context)

0 commit comments

Comments
 (0)