Comments (6)
I thought this might have been because of ada locked in a token is showing as available, but I tried from an address with only lovelaces.
from pycardano.
What version of pycardano are you using? It could be that the change (2.83-1.6-0.16=1.07) is not meeting the minimum utxo size requirement. It will be great if you can share the input address so I am able to reproduce the problem.
from pycardano.
I'm using pycardano v0.5.0 sending from addr1qypm6f2z5g45duzj9v9lt7jz9ce2q5m59vw3reqm9e25uxpynes82004nuvufjx0zu8up9dlr574azfnnp2vj3dcwrsqfux5t0
from pycardano.
I thought the min was 1 ADA + ~0.16 min tx fee. Does pycardano have a higher min to cover overhead without possible hiccups?
from pycardano.
Could confirmed this is a bug. You are right, when there is only ADA in the output, 1 ADA is the minimum requirement. I fixed this in this commit: cffls@f8daca6
Test:
from pycardano import *
network = Network.MAINNET
context = BlockFrostChainContext("mainnetqEZ4wDDoRdtWqh2SNVLNqfQbhlNmTbza", network)
address = Address.from_primitive('addr1qypm6f2z5g45duzj9v9lt7jz9ce2q5m59vw3reqm9e25uxpynes82004nuvufjx0zu8up9dlr574azfnnp2vj3dcwrsqfux5t0')
builder = TransactionBuilder(context)
builder.add_input_address(address)
builder.add_output(
TransactionOutput(
Address.from_primitive(
"addr1qyady0evsaxqsfmz0z8rvmq62fmuas5w8n4m8z6qcm4wrt3e8dlsen8n464ucw69acfgdxgguscgfl5we3rwts4s57ashysyee"
),
Value.from_primitive(
[
1600000,
]
),
)
)
tx_body = builder.build(change_address=address)
print(tx_body)
Output:
{'auxiliary_data_hash': None,
'certificates': None,
'collateral': None,
'collateral_return': None,
'fee': 167965,
'inputs': [{'index': 0,
'transaction_id': TransactionId(hex='1764ea2ce4653c1f03b78a5ac73cf4c40247a930f60d3467927f744e9c06fc6d')}],
'mint': None,
'network_id': None,
'outputs': [{'address': addr1qyady0evsaxqsfmz0z8rvmq62fmuas5w8n4m8z6qcm4wrt3e8dlsen8n464ucw69acfgdxgguscgfl5we3rwts4s57ashysyee,
'amount': {'coin': 1600000, 'multi_asset': {}},
'datum_hash': None},
{'address': addr1qypm6f2z5g45duzj9v9lt7jz9ce2q5m59vw3reqm9e25uxpynes82004nuvufjx0zu8up9dlr574azfnnp2vj3dcwrsqfux5t0,
'amount': {'coin': 1062574, 'multi_asset': {}},
'datum_hash': None}],
'reference_inputs': None,
'required_signers': None,
'script_data_hash': None,
'total_collateral': None,
'ttl': None,
'update': None,
'validity_start': None,
'withdraws': None}
from pycardano.
Thanks Jer, I'll look for the update when you pull it into the master branch
from pycardano.
Related Issues (20)
- Better PlutusData Debug Messages on Error HOT 2
- Recreating long submission bytestream datum HOT 15
- CIP8 signing with extended signing key fails HOT 1
- Unique constructor id can not be independently implemented in foreign languages HOT 1
- Support for Pool Certificates
- Network property should cause a recursion error HOT 1
- genesisConfig request is made twice in OgmiosChainContext __init__ HOT 3
- PlutusData parsing does not handle modern type hints HOT 8
- Support for CIP14
- Fee off by 1 HOT 3
- tx sign fails without giving any explicit error. Error type: 500 HOT 2
- most basic nft minting is now failing HOT 9
- Support for Ogmios 6.x in the ChainContext HOT 3
- Seperating primitives and chain contexts / higher level tooling HOT 1
- TransactionFailedException with empty websocket response / receiving empty string
- Reconstructing Transactions from CBOR does not preserve the structure HOT 7
- Support Conway HF ledger changes HOT 1
- Integration test for Conway HF
- Usage of PlutusData for Datum deserialization is unclear HOT 9
- Pycardano does not prevent adding datums for script inputs with inline datums
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pycardano.