All Questions
2,619
questions
1
vote
0
answers
2
views
PlutusTx TxInfo Type Mismatch
I am building a PlutusTx V1 Smart Contract for NFT Royalty distribution. Part of that requires totaling up the amount of Lovelace sent to the contract from the most recent tx. I came up with the ...
0
votes
0
answers
5
views
Is it possible to obtain the cbor hex/script bytes from a bech32 script address?
I would like to get the script bytes from the bech32 address of a script. Is this possible?
0
votes
0
answers
2
views
Reference to a name which is not a local
I'm trying to run unsafeFromBuiltinData against the following type used as redeemer:
data TypeA= A PaymentPubKeyHash
| B PaymentPubKeyHash
deriving (Show, P.Eq)
...
0
votes
1
answer
20
views
Transaction submit error MissingVKeyWitnessesUTXOW
I am @emurgo/cardano-serialization-lib-nodejs to submit transaction in cardano.
I am getting following error.
Transaction 5c98317bc6caf027b91e807ed1cdd78571b8f9a791202b5feff5b32fa5f71f1f rejected,
...
1
vote
1
answer
13
views
Need to access documentation for Plutus.Contract.Oracle but not available in https://input-output-hk.github.io/plutus/master/
Playground is discontinued but the updated documentation seems to be lacking in components that I have been working with.
I did try to look up the other versions they have listed in their gh-pages ...
0
votes
1
answer
26
views
Get Master Key from Mnemonic seed for Cardano Byron wallet
I have wallet in Infinito wallet. My mnemonic seed has 12 words and Yoroi, Daedalus Wallet does not support it.
I can get different Master Private key, address for Cardano Shelley, Byron wallet from ...
2
votes
1
answer
33
views
When is Genius Yield going to release its PAB?
I know that GeniusYield announced some time ago that they would make their PAB open-source.
Does somebody know when they are going to do it?
0
votes
0
answers
15
views
Does someone know how to integrate the plutus docs snippets on Sublime text?
I want to integrate the plutus docs provided in the ppp, which is initialized this way:
python3 -m http.server -d ../plutus-pioneer-program/docs/plutus-docs/haddock
I already installed the LSP(...
0
votes
1
answer
38
views
Understanding a datum declaration in typescript
At the bottom of this post are lines 52-68 of file lucid-vesting of week 4 (PPP fourth iteration). I am having a hard time understanding line 60:
const dtm: Datum = Data.to<VestingDatum>(datum,...
0
votes
1
answer
46
views
Limit the number for each Token (AssetName) within one Currency Symbol (Policy ID)
is there any way to limit number for each tokens within one minting policy, in Plutus validator?
For example for policy ab12 I want to allow users minting tokens, in different transactions. Сan the ...
1
vote
1
answer
18
views
Can one see Redeemer value on Blockchain?
Redeem value is never revealed anywhere right? i mean on the BlockChain explorer i cant see someone's redeem passed?
It it sent to Validator to validate and that's it.
1
vote
1
answer
31
views
How can I access Haddock documentation for Plutus?
The link to the Plutus documentation - https://playground.plutus.iohkdev.io/doc/haddock/ - is broken. Is there another way to browse the haddock documentation for the latest version of Plutus?
0
votes
1
answer
5
views
Denied Cabal Access to pictures. Now Getting error
Accidentally denied Cabal Access to pictures through a prompt given. Now, when I try to cabal Init I get this message "User/******/Library/Application Support/MobileSync: getDirectoryContents:...
1
vote
0
answers
13
views
setup a Plutus project use haskell.nix Error on Mac M1
I'm trying to set up a Plutus project with flake on my Macbook by IOHK document
I did the following steps:
create default.nix
enter command nix flake init --template templates#haskell-nix --impure
...
0
votes
1
answer
37
views
Can anyone provide an easy to understand script that sends ADA using the Cardano Serialization Lib?
new to coding here. (obviously)
I am looking to understand how this works, and I am sure if I physically see the code I will pick up on it quick.
I am looking for a very simple script that sends ADA ...
0
votes
1
answer
14
views
Minting with MESH - Error Missing key witness for: 1e101f14d
Having an issue trying to mint an NFT with my own policy. It's throwing the error below:
Missing key witness for: 1e101f14d07f203b01f8.....
I am not sure what to do here and any assistance would be ...
0
votes
1
answer
16
views
How to seperate NFTs and FTs?
Here are some tokens, how would i differentiate between them as which are NFTs and FTs.
I am confused in "AdaFarm860" as it seems NFT but it is in quantity of "4". I'am having ...
0
votes
1
answer
13
views
How to get total fees of a NFT transaction in cardano blockchain?
Is there any api for to get transaction fees of the NFTs when buy or sold and does the transaction fees includes Royalty fees ?
1
vote
0
answers
30
views
Building a transaction that will require both payment and stake key signature using Cardano Serialization Lib
Usually, when a build a simple transaction such as making a payment, the transaction usually requires the buyer's payment key. Here is an example transaction I made with Cardano Serialization Lib.
// ...
2
votes
1
answer
27
views
Api for historical USD rates?
I want to fetch the historical USD rates from a timestamp, is there any api available for that could be used in javascript?
0
votes
1
answer
8
views
Daedalus synch problem
Not always, but very often the Daedalus wallet seems to synchronize completely again. Shouldn't the downloaded blockchain be permanently on the computer and then only the missing rest be synchronized?
2
votes
1
answer
36
views
Can't collect utxo from the gift script address
I'm following Plutus Pioneers Program, 4th Cohort.
In the 2nd week we learned the smart contract Gift.hs
-- This validator always succeeds
mkGiftValidator :: BuiltinData -> BuiltinData -> ...
1
vote
0
answers
5
views
Can I communicate with my local test net via REST/WebAPI
I am using this https://github.com/woofpool/cardano-private-testnet-setup to run my local testnet.
I was using this
const CardanocliJs = require('cardanocli-js');
const cardano = new CardanocliJs(...
0
votes
2
answers
23
views
Does nmkr.io provide public api?
Does nmkr.io provide free usable cardano apis for NFTS or do we have to mint the nfts and build a project on their platform something like that ...and then we can use their api because in their apis ...
1
vote
1
answer
22
views
Week02 Homework 1
I am getting type mismatch when I use traceIfFalse. What could be be reason? And how could I get this resolved. I also noticed that it didn't fail while I build lecture examples.
Couldn't match ...
0
votes
1
answer
14
views
How to fetch data of sold nft from my NAMI wallet through api?
I am using "https://api.opencnft.io/1/asset/{asset}/tx" which gives the buy price and timestamp of an NFT, I have to fetch the data(Sold Price, Timestamp) of the NFT when it is sold then how ...
0
votes
4
answers
34
views
Recover a Cardano wallet offline
Is there a way to recover or generate the addresses of my wallet (24 seed) without using external servers (JavaScript)? Just like we do with other blockchains?
Example: https://iancoleman.io/bip39/
0
votes
1
answer
61
views
The Plutus script evaluation failed [Homework Week 02]
I'm a have problem unlocking the smart contracts of the homework of week 02.
The Plutus code:
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE ImportQualifiedPost #-}
{-# LANGUAGE NoImplicitPrelude ...
3
votes
2
answers
34
views
Rust off-chain solutions
I am interested in learning Rust and I thought a good idea of doing so would be to build something on Cardano. What libraries and resources would you recommend for someone like me? I am specially ...
1
vote
1
answer
27
views
Is cardano native token ADA is same as the ADA balance I have in the wallet?
Is the number of cardano native tokens ADA is same as the ADA balance I have in the wallet?
1
vote
1
answer
18
views
Mint the royalty token with pycardano
Good morning everyone,
I have a question regarding the royalty token. I've already read about this subject, and I understand that I need to mint a token with metadata like this:
{
"777": ...
0
votes
1
answer
23
views
Unable to convert BuiltinString to JSON
I would like to include a BuiltinString in a datum but am unable to do so as BuiltinString has neither a FromJSON nor a ToJSON instance. Is there an alternative to implementing these instances by hand?...
2
votes
1
answer
47
views
Can't collect due to a non existent script
I'm following Plutus Pioneers Program, 4th Cohort, I'm at Week 2 on testnet
I'm struggling a bit collecting the gift, I have do a slightly modified version of Gift, creating it works as expect:
$ ...
2
votes
1
answer
33
views
Which API can give the buy price and sold price of NFT of cardano blockchain?
I am working on Cardano NFT tool kit, which basically shows the NFT's owned by a user. The tool kit shows the various information about NFT stored in wallet like (Buy Price, Sold Price, Rarity, ...
1
vote
1
answer
15
views
Can I view a Plutus smart contract on the NFT marketplace?
Can I view a Plutus smart contract of an NFT from the marketplace like (JPG store) and what is PubKeyHash ?
1
vote
0
answers
12
views
Comparing VALUES in a smart contract. How to know if they will be normalized or not?
I need to make VALUES comparisons on chain.
I realized that if a use the (==) operator from Plutus it is very inefficient in matter of memory and cpu steps needed to compute.
(https://github.com/input-...
0
votes
1
answer
25
views
Cardano-cli minting gives FeeTooSmallUTxO error when no collateral
For minting some tokens I use this transaction:
cardano-cli transaction build
--testnet-magic 2
--tx-in-collateral 44ed21bc50eecc24e892a5bad4a98f2187b66d1f5074db22763cbc69fb5910b6#1
--tx-in ...
0
votes
1
answer
22
views
TypeError: a bytes-like object is required, not 'Transaction'
I am trying to use the https://github.com/Python-Cardano/pycardano/blob/main/examples/native_token.py with minor changes, like pointing to mainnet (have tried preview as well). I have updated the ...
1
vote
3
answers
43
views
How to differenciate between fungible token and NFT from their API data?
I am fetching assets stored in my wallet address. I want to seperate the fungible tokens and NFTs , on what basis I can differenciate both of them from data I am fetching from API (opencnft.io) like ...
1
vote
1
answer
45
views
Is Plutus off-chain code relevant for testing?
It was mentioned in lecture 1 that in this fourth cohort of the PPP we won't need to learn to write off-chain code in Plutus/Haskell. Nevertheless it appears that testing uses the emulator and it ...
0
votes
1
answer
24
views
Sources of cardano rest api
While testing some tangocrypto api , it is asking for "collection_id" which I don't know what is it.
So are there any Rest API providers other than (tangocrypto.com, blockFrost.com and ...
0
votes
0
answers
12
views
Transaction collateral inputs for specified transaction hash
In cardano-db-sync, how would you go about returning all transaction collateral inputs for a given transaction hash?
Similar to the interesting queries documented here I thought that something like ...
0
votes
0
answers
7
views
How can I stop Daedalus from 'Whiting Out'?
For the last few versions, including the current update, I've experienced the Daedalus application interface going completely. It appears to continue syncing, although the cursor is replaced by the ...
0
votes
1
answer
18
views
How to create Policy Id using cardano serlization lib?
I was wondering how to create the policy Id/script for the cardano assets.
I am new to cardano blockchain but I have worked on Ethereum. I read the docs provided by the cardano officials but couldn't ...
0
votes
0
answers
11
views
Hydra integration in React Node JS app examples
Title. Is there any basic sample / boilerplate code for integrating hydra into client/server side apps
0
votes
2
answers
22
views
Changing Pledge amount on the stake pool
I would like to increase the pledged amount on my stake pool. I searched online and I learned that I need to generate a new pool.cert among other things and that the change will take effect in two ...
0
votes
0
answers
11
views
Unable to increase max interpretation time for Plutus Playground Server
I am following PPP Cohort 3 Lecture 3. My plutus playground is working correctly on Windows 10 WSL2. However, I am unable to increase the max interpretation time for Plutus Playground Server. I ran ...
0
votes
1
answer
26
views
plutus-apps nix-shell on Mac M2 segmentation fault
I'm unable to run nix-shell on my new M2 Macbook.
I read through the posts from last year on setting up M1 Macbooks with previous plutus-apps tags, but the same steps do not seem to work.
Environment: ...
0
votes
0
answers
9
views
How to convert index.tsx into static html?
I have a tsx file , index.tsx , which was created by nextjs , and then run with npm run dev.
I also have a front end , which use index.html and use a custom script file written by me .
I need to ...
0
votes
0
answers
9
views
How to get all NFT that are added in last 24 hours in a address using SQL?
the attached queries give me all the assets in a particular address but i wish to get only nfts that are added in last 24 hours
SELECT
multi_asset.name::text,
encode(decode(substring(concat(...