cardano-client-lib
cardano-client-lib copied to clipboard
Cardano client library in Java
- getScriptCbor(scriptHash) : For plutus scrtips - getScriptJson(scriptHash) : For native scripts
BigInteger amount = BigInteger.valueOf(1200000); Output output = Output.builder() .address(receiverAddress) .assetName(LOVELACE) .qty(amount) .build(); // Define TxBuilder TxBuilder txBuilder = output.outputBuilder() .buildInputs(createFromSender(senderAddress, senderAddress)) .andThen(balanceTx(senderAddress, 1)); UtxoSupplier utxoSupplier = new DefaultUtxoSupplier(backendService.getUtxoService()); ProtocolParamsSupplier protocolParamsSupplier...
When building the transaction which contains: - output has datumHash - witnessSet has plutusDataList Expected: - scriptDataHash is generated Actual: - scriptDataHash is not generated Sample valid cbor: ``` 84a6008182582094b5f508897f4e0edd1424e5ecdf9809e4460117cbf387f512cfc813fd6107eb03018283581d7186ae9eebd8b97944a45201e4aec1330a72291af2d071644bba0159591a0632ea005820541c04078a3a2c614b5b3f9b8182a4f42fabb428a6147b78d85f2ed9f26d53278258390124517b26c3373eaeef8bb003d7fdae97a2ae7a6124f1a2f073f78ef453c1fdc3fd349800ddca096ce3431f31109d12fe6f72b31c4027238c1a0282f1b9021a0002c405031a05e36f48081a05e361380b5820f57b09d892bc52cbaead361e2e6b5701b6a751757bde9b9387ecfe902ef16678a10481d8799fd8799fd8799fd8799f581c24517b26c3373eaeef8bb003d7fdae97a2ae7a6124f1a2f073f78ef4ffd8799fd8799fd8799f581c53c1fdc3fd349800ddca096ce3431f31109d12fe6f72b31c4027238cffffffff581c24517b26c3373eaeef8bb003d7fdae97a2ae7a6124f1a2f073f78ef41b000001899244bae0d8799fd8799f4040ffd8799f581cf66d78b4a3cb3d37afa0ec36461e51ecbde00f26c8f0a68f94b698804469555344ffffffd8799fd879801a01cacaeafffff5f6...
Currently, the ScriptTx.collectUtxo method accepts utxo/List and redeemer data as parameters. However, in some scenarios, the redeemer is not required, but a specific utxo is needed as input. **For example,**...
- Builder should automatically add datum to the witness set.
I'm trying to send a scriptTx using QuickTx but getting: "InsufficientCollateral (Coin (-12084272)) (Coin 307193)" Collateral summary: IN 5f7e7cae5ac68122fd07ae76977034802977c160e5d015cbeeb80db2e4b618d2 - index 0 - 9793445 lovelace 3e2bdf7f96ff13d552bd7a4979b04f710665fca59b98af8e1461a0fe31475c97 - index 1 -...
Currently, if TxEvaluation fails in ``AikenTransactionEvaluator``, QuickTxBuilder still submits the transaction but doesn't show the error message from TxEvaluator.
- withRequiredSigner(Address) - withRequiredSigner(byte[])
**Goal:** Application should be able to perform offline script cost evaluation **Description** Offline script cost evaluation is now possible with Aiken. This capability is exposed for Java applications through [aiken-java-binding](https://github.com/bloxbean/aiken-java-binding)...
Currently, Tx api try to group outputs by address to optimize tx fee. But in some scenarios, we may want to create several outputs at the same address in same...