Questions tagged [python]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
17 views

How to specify the Cardano address for BlockFrost Transaction Endpoint?

Hi im trying to call this https://docs.blockfrost.io/#tag/Cardano-Addresses/paths/~1addresses~1{address}~1transactions/get from some code I wrote (images attached below) and get a None or Empty value ...
user avatar
0 votes
1 answer
13 views

Get Transaction History Given Policy ID using Blockfrost API

What's the best say to get the transaction history of an NFT collection given the policy id? I looked into Asset Transactions but this requires both policy ID and the asset ID. Is there something else ...
user avatar
0 votes
1 answer
29 views

Is there a Python Version of Cardano Node-CLI JavaScript Library?

I know JS, but I have other code written in python that I want to use in conjunction with the node. Is there a Python 3.xxxx SDK/Library/Module that will do everything the JS can? Heres what is ...
user avatar
2 votes
1 answer
72 views

Get transaction unspent output value

I have payment signing key and staking signing key of my wallet. How can I get transaction unspent outputs with cardano-cli/cardano-serialization-lib/pycardano. I expect to get string like this ...
user avatar
  • 21
0 votes
1 answer
23 views

Python equivalent to Ogmios?

Has somebody written a library equivalent to Ogmios, that has the same functionalities, including a chain sync protocol, but entirely written in Python?
user avatar
  • 88
2 votes
1 answer
52 views

Derive public key hash from bech32 address using python

I know that this is possible in javascript using the cardano serialization lib, as follows: function toHex(bytes){ return Buffer.from(bytes).toString("hex"); } function addrToPubKeyHash(...
user avatar
  • 753
4 votes
2 answers
130 views

Cbor address to bech32 type address in JS or python

I have managed to retrive a user address from a dapp connector wallet using JS: api_promise = window.cardano.{wallet}.enable(); api_promise.then(function(api) { addr_promise = api.getUsedAddresses();...
user avatar
  • 151
0 votes
3 answers
61 views

Similar source for Cardano

I want to generate public and private keys with an address. I found this repository but it doesn't support Cardano. Does anybody know any similar source?
user avatar
  • 29
1 vote
1 answer
145 views

Serialize a transaction in python

I want to use the "Submit a transaction" method in Blockfrost but it needs an already serialized transaction. Does anybody know how to serialize a transaction in python? (I don't wanna use ...
user avatar
  • 29
0 votes
0 answers
34 views

Reward calculation using Python

I've checked the different stack exchange questions and forum.cardano.org, and I can't find the clarification of whether my Python script is using the right values for calculating a pool's reward ...
user avatar
8 votes
2 answers
327 views

How do I properly derive a stake key from an address using Bech32?

I'm trying to get a stake address from a Shelley address in Python using this library: https://pypi.org/project/bech32/ I can convert an address from bech32 to hex without issue, but I'm getting stuck ...
user avatar
7 votes
2 answers
726 views

bech32 in Shelley addresses

I'm trying to write address validation in Python. According to the docs, Shelley addresses are encoded with bech32 and the first byte of the payload consists of header_type (4 bits) and network_tag (4 ...
user avatar
  • 766
4 votes
2 answers
1k views

How to derive addresses from a key exported from Yoroi

I’d like to code a small crypto portfolio app using python. So to track my ADA, I need to scan the addresses of my wallet. I found Yorois feature to export a “key” and conveniently, it also states the ...
user avatar
  • 291
6 votes
1 answer
120 views

Re-Implementing Policy Hashing in Python

As the title says, I want to to reimplement the hashing part of a policy script in Python 3. I have already made a post over at forums.cardano.org, and someone has pointed me to the right direction of ...
user avatar
  • 180