All Questions

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

Custom currency error: Cannot build the initial state: Tag "toCardanoPolicyId"

I try to set an initial state of the emulator like so: test :: IO () test = runEmulatorTraceIO' def emCfg myTrace where dist = Map.fromList [ (senderWallet, Ada.lovelaceValueOf 100_000_000) ...
Adam's user avatar
  • 343
0 votes
3 answers
127 views

Full stack dApp example/tutorial

Now that I am comfortable with Plutus, I want to build a full-stack dApp with frontend and wallet support, so users can interact with it easily. This auction dApp is a good example, but it does not ...
sinoTrinity's user avatar
0 votes
0 answers
17 views

NFT minting code gives error (frontend entirely)

async buildSendADATransaction(e){ //Step 1: Initialise the transaction this.initTransactionBuilder(e); const shelleyOutputAddress = await S.Address....
LKBH Pools's user avatar
1 vote
1 answer
61 views

Possible to get the total supply of a native token in a smart contract?

Is it possible to get the total supply of a native token in a smart contract, similar to the following Solidity code from here? One can easily query it from an external API. address token = ...
sinoTrinity's user avatar
0 votes
1 answer
53 views

E042:Error: Unsupported feature: Type constructor: GHC.Prim.Addr

Has anyone encountered such an issue? Validator works fine and cborHex is generated when "writeSerialisedScript" run in cabal's repl. But when building with cabal build app, the following ...
Aoaddeola's user avatar
  • 805
1 vote
1 answer
31 views

Column does not exist when querying Rosetta endpoint

I'm currently running cardano-node version 1.35.0 and rosetta-server 1.8.2. The node is synced and I have blocks in postgres, however each query to rosetta throws an error: curl -vvv -X POST 'http://&...
relik's user avatar
  • 111
0 votes
2 answers
64 views

Can there be duplicate Policy IDs?

An asset is uniquely identified by an asset ID, which is a pair of both the policy ID and asset name. The Policy ID is a hash of the monetary policy script that was used to mint the token. What ...
sinoTrinity's user avatar
0 votes
1 answer
40 views

Is validator script needed to spend a UTXO locked by its hash?

When a UTXO is produced, it is locked to an address, i.e., the hash of a script, not the script itself. When a transaction spends it, does the tx have to provide the script in its input? There are ...
sinoTrinity's user avatar
0 votes
1 answer
39 views

SlotToPOSIXTime in English Auction Demo

in my cabal repl, i'm getting the following error from trying to replicate the week1 demo of Plutus-pioneer-program. I'm also unable to simulate the example scenario in the playground (i can see ...
tyvan266's user avatar
2 votes
2 answers
79 views

How to run a simple Fib function offline?

On Ethereum, I'm able to run and test a Fibonacci function by writing a Solidity smart-contract with a fib method, compiling to the EVM, deploying and running offline by using any EVM implementation, ...
MaiaVictor's user avatar
1 vote
1 answer
39 views

How often do we see chain reorgs in Cardano?

Is there a specific metric we can follow on-chain, or how we can observe or infere a chain reorg has happened?
kopeboy's user avatar
  • 11
0 votes
1 answer
35 views

Key derivation are unclear

I watch this video on Key Derivation process (https://www.youtube.com/watch?v=4tSQBK75CPU&t=722s). Basically, from mnemonic phrase --> create root key --> create public addresses Then, I see ...
cdt's user avatar
  • 121
0 votes
2 answers
395 views

How does Cardano Halving work?

Does Cardano Halving work similar to Bitcoin Halving? The next Bitcoin halving is projected to take place in March 2024, will Cardano Halving happen the same year? The Cardano price prediction for ...
Adam gil's user avatar
2 votes
1 answer
77 views

Getting the CurrencySymbol of PlutusV2 MintingPolicy

I'd like to get the CurrencySymbol of a PlutusV2 MintingPolicy. There's a function defined in Plutus.Script.Utils.Scripts with the following signature: scriptCurrencySymbol :: Versioned MintingPolicy -...
Aoaddeola's user avatar
  • 805
3 votes
1 answer
34 views

Track incoming payment of an address using cardano-db-sync

I have a cardano-node with cardano-db-sync installed. In this node, I also have a separate database named CDT, and a web UI to connect to this CDT database. I defined an address named addr1xxxxxx ...
cdt's user avatar
  • 121
0 votes
0 answers
7 views

Address() in @cardano-sdk/core is empty

S = require("@cardano-sdk/core") new S.CSL.Address() return Address{} According to documentation it should have methods associated. Any ideas what is happening ?
LKBH Pools's user avatar
1 vote
1 answer
48 views

Unable to compile script

I'm stuck trying to compile my minting policy - getting the following error message: • Couldn't match type ‘Colony’ with ‘BuiltinData’ Expected type: template-haskell-2.16.0.0:Language....
Aoaddeola's user avatar
  • 805
1 vote
1 answer
64 views

How to use reward withdrawing via cardano-cli?

Has anyone played around or stumbled upon tutorial examples on how to use reward withdrawing via cardano-cli? I want to study the commands related with "withdraw" keyword. I have not seen ...
Ask-Plutus-Bot's user avatar
1 vote
1 answer
64 views

How to install/use cardano-serialization-lib

I follow this guide to get start with cardano-serialization-lib. Install nodejs package with: npm i @emurgo/cardano-serialization-lib-nodejs Still can't get it running. The module 'rust-lib' can't be ...
Adam's user avatar
  • 343
0 votes
0 answers
17 views

Error deserializing multiple UTXOs

When deserializing multiple UTXOs from the same wallet, in some point of the rawUtxos the process crash with this error. When doing the same process to deserialize the same UTXO but not on a loop, it ...
Maximus's user avatar
0 votes
0 answers
14 views

Nami Wallet login flow on NodeJS

I want to be able to authenticate users in my web app using Nami and nodejs. As in, once the user connects with their Nami Wallet, I want to create a login session and store the user in a database, ...
spcsn's user avatar
  • 1
0 votes
0 answers
41 views

PaymentPubKeyHashes don't match

I have a structured datum like: data VestingDatum = VestingDatum { beneficiary :: PaymentPubKeyHash , deadline :: POSIXTime } ...
Adam's user avatar
  • 343
3 votes
2 answers
48 views

How to detect a wallet change event

How do i detect that my user has switched their wallet to a different one in browser. When a user connects their wallet to my web app, we store their wallet address temporarily for use in the future....
szhang9921's user avatar
1 vote
1 answer
34 views

Failure building documentation [closed]

I've been trying to build documentation to no avail: Below is the log of the output i get after running nix build -f default.nix docs.site --extra-experimental-features nix-command @nix { "action&...
Aoaddeola's user avatar
  • 805
1 vote
1 answer
78 views

when and where to use different types of addresses in cardano

From here https://docs.cardano.org/learn/cardano-addresses I know that there are 4 types of addresses: base addresses pointer addresses enterprise addresses reward account addresses For my ...
cdt's user avatar
  • 121
0 votes
1 answer
32 views

Unable to attach two reference inputs to a transaction with Plutus Emulator

I have written a script that will fail unless it receives both oref1 and oref2 as reference inputs. I have the following emulator code: let rule = mempty <> C....
Eric's user avatar
  • 3
0 votes
1 answer
37 views

nix shell did not work in plutus-apps

I checkout to branch c2b310968d0915e2af0ea4680186b41ad88ffbe9 and run nix-shell at plutus-apps. No error, nothing change when I run nix-shell.I reinstalled nix, changed iohk-cache, reinstalled ubuntu. ...
Ming's user avatar
  • 1
0 votes
1 answer
75 views

How to get balance of enterprise address

https://docs.blockfrost.io/#tag/Cardano-Addresses/paths/~1addresses~1%7Baddress%7D~1extended/get I am using above blockfrost api to get address balance. However, it isn't working with enterprise ...
Heindrick's user avatar
0 votes
1 answer
57 views

Transaction in Cardano

I created transfer function with blockfrost.js and cardano-serialization-lib. I refered following code. https://github.com/blockfrost/blockfrost-js/tree/master/examples/simple-transaction When I try ...
Heindrick's user avatar
0 votes
1 answer
66 views

Is hydra.iohk.io just down or has there been a change in .json configs’ provisioning?

Where does one get the basic .*-config.json, .*-topology.json and .*-genesis.json files for package building nowadays? The URLs that always worked for me seem down, e.g.: https://hydra.iohk.io/job/...
Andrej Podzimek's user avatar
0 votes
0 answers
28 views

Possible inconsistence data in db-sync

I've this query on Preprod: SELECT ENCODE(TX.HASH, 'hex') as tx_hash, TX_OUT.INDEX, TX_OUT.ADDRESS_HAS_SCRIPT, ENCODE(TX_OUT.DATA_HASH,'hex') AS DATUM_HASH, SCRIPT.ID as script_id, ...
leobelizquierdo's user avatar
0 votes
0 answers
18 views

traceIfFalse not showing in cardano-cli output

I have a minting policy: mkNftValidator :: NftParams -> BuiltinData -> ScriptContext -> Bool mkNftValidator _ _ _ = (traceIfFalse "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" ...
serx's user avatar
  • 178
1 vote
2 answers
254 views

Send native tokens without running node

is there any library or proper guide to send custom/native tokens in NodeJS? i don't want to run full node (cardano-node/cardano-wallet), just want to build and sign a transaction and submit it via ...
AmirhN's user avatar
  • 13
0 votes
1 answer
29 views

building cardano-node and cardano-cli on nix

I'm following the instructions here: https://github.com/input-output-hk/cardano-node/blob/master/doc/getting-started/building-the-node-using-nix.md/ But I'm not sure how to get it to compile the 1.35....
tyvan266's user avatar
0 votes
1 answer
53 views

Module `Ledger.Typed.Scripts' does not export `wrapValidator'

I try to compile code from Plutus Pioneer Program week 4. These lines cause error. typedValidator :: Scripts.TypedValidator Vesting typedValidator = Scripts.mkTypedValidator @Vesting $$(PlutusTx....
Adam's user avatar
  • 343
1 vote
1 answer
40 views

How is protocol.json used when minting NFTs?

I'm tinkering with creating NFTs via the cardano-cli. The various "how-to" pages I have found all have me download protocol.json using cardano-cli query protocol-parameters \ --testnet-magic ...
XiTouch's user avatar
  • 349
1 vote
2 answers
175 views

Nix-shell in plutus-apps

I'm using Ubuntu 20.04.5 with an 11th Gen Intel® Core™ i7-1195G7 @ 2.90GHz × 8. After cloning the plutus-apps repo and setting my nix config, i can't get pass the following nix-shell error: trace: To ...
tyvan266's user avatar
0 votes
0 answers
15 views

ownPaymentPubKeyHash == wallet address?

According to this documentation, ownPaymentPubKeyHash is: Get the hash of a public key belonging to the wallet that runs this contract. * Any funds paid to this public key hash will be treated as the ...
Adam's user avatar
  • 343
0 votes
2 answers
22 views

Get back my funds after a mistaken self transaction on Cardano

I accidentally made a self-transaction with my account and would like to know if I can get it back. As you can see my account here, and this is my self-transaction sent 2 weeks ago. I'm using cardano-...
Raphaël Etang-Salé's user avatar
2 votes
2 answers
69 views

Collateral for new Wallets

New users of Cardano sometime want to get started quickly and often face the daunting task of understanding what collateral is. Then faced with the fact that they need to send some collateral to their ...
D S's user avatar
  • 312
0 votes
1 answer
62 views

How to decode the datum stored across records in the tx_metadata table for a given tx

For a given tx - where a contract has been used, outputs have been stored in the tx_metadata table - in this case key/value pairs where the values of keys 0 through 10, when appended together to form ...
RelevantData's user avatar
0 votes
1 answer
26 views

Public cardano-wallet service list

While I am checking cardano-wallet-js, I noticed requirement. Before start using the library you will need a cardano-wallet server running. Is there any public cardano-wallet server which I can use ...
Heindrick's user avatar
0 votes
2 answers
55 views

Mesh Error: getUsedCollateral not implemented

I'm using mesh and follow this example of always-succeed smartcontract. I successfully send Lovelace to the script address. But when building transaction for redeeming Lovelace from the script address,...
Adam's user avatar
  • 343
0 votes
1 answer
15 views

Get margin amount in private pool

I want to get reward amount for specific pool for specific epoch. https://docs.blockfrost.io/#tag/Cardano-Pools/paths/~1pools~1%7Bpool_id%7D~1history/get Above blockfrost api provides reward amount ...
Heindrick's user avatar
0 votes
0 answers
50 views

Decode the cbor datum in tx_metadata

I cannot find a way using an available nuget package, to decode the cbor data stored in tx_metadata for a given transaction. cbor.me does convert it to an object but even there I cannot find how to ...
RelevantData's user avatar
1 vote
2 answers
44 views

Get pool reward for specific epoch

I want to get pool(private pool) reward for specific epoch. I searched blockfrost.io apis, can't find reward api. How can I get reward by api? Or other solution will be fine like graphql.
Heindrick's user avatar
0 votes
2 answers
39 views

pay collateral with cardano-cli

Followed the guide here to build preprod testnet wallets, was wondering however I can create the collateral utxo with cardano-cli ?
Hud's user avatar
  • 433
0 votes
1 answer
61 views

How to get all unSpent UTXOs at script address OnChain

Hi i am building CrowdFund where i need to know the total amount raised at the script as an OnChain validation. i was looking at Contexts.findOwnInput but would this only return the tx-in's provided ...
Chakravarti Raghavan's user avatar
0 votes
0 answers
29 views

How can i store local variables in Plutus just like solidity?

As the title suggests, how do i store local variables in Plutus? In solidity, i can have a (address => bool) mapping to enforce a rule that some functions should be callable at most ONCE by a ...
big-tea-rice's user avatar
0 votes
1 answer
118 views

How can I interact with smart contract created from Marlowe in the testnet/mainnet?

I create a smart contract with Marlowe from https://play.marlowe-finance.io I now want to deploy the contract in the preview testnet and later mainnet. I imagine it must be somehow converted into ...
Adam's user avatar
  • 343

15 30 50 per page
1
3 4
5
6 7
54