Hot answers tagged

11 votes

Native Token Names: How may I prevent other Projects from using my Project's Cardano Native Token Ticker/Name (fungible) on any blockchain network?

Tokens are identified on Cardano by their policy id. This will be completely unique to your token when you mint it. You can then register your token in the github token registry. Wallets like Daedalus ...
9 votes
Accepted

Hardcoding currency symbol and token name in validator script

The problem is in your sealsToken function, where you use a ByteString-literal. This is not possible if you want to compile to Plutus Script. A trick to work around this issue is to add an additional ...
6 votes
Accepted

How do I calculate the fingerprint of an asset?

As per CIP14: User-Facing Asset Fingerprint, we calculate it as: assetFingerprint := encodeBech32 ( datapart = hash ( algorithm = 'blake2b' , digest-length = 20 , message = policyId | ...
5 votes

Cardano CLI - Error submitting transaction for minting a token

Where you submit transactions to the blockchain, you typically go through the following steps. build the transaction without any fees calculate the transaction fees rebuild the transaction with the ...
  • 361
5 votes

Is on-chain voting limited to just the Cardano treasury?

The on chain voting features coming with the Voltaire rollout will allow users to use those voting systems for other things because they are part of the base protocol. So incorporating voting on chain ...
4 votes

Can you write dapps in C based languages?

Currently, you cannot write and deploy a smart contract in C on Cardano. For native tokens (incl. NFTs), see the developer portal. For writing smart contracts, you can use Marlowe or the more powerful ...
  • 1,527
4 votes
Accepted

If metadata can be changed, how can the uniqueness of an NFT can be guaranteed?

The uniqueness of an NFT comes from its minting policy, not the metadata. If you create a script that can only mint one token, then you know any token with that address as its currency symbol is ...
3 votes
Accepted

Is there any way to mint/airdrop tokens and NFTs to members/users without sending them ADA

You can also create minting transactions that are payed by the users directly and you mint directly into their wallets. This should be possible if you interact with their wallet using a DApp connector ...
3 votes

Can you write dapps in C based languages?

Not currently. There is work being done on the IELE VM. In theory this will allow any language that can compile to LLVM to be used to write smart contracts on Cardano. This includes C and C++, among ...
3 votes

Will there be token burn at any point in time in future?

Decreasing the supply of ADA by burning tokens is a method to artificially raise the value of the remaining supply. It has been repeatedly stated that all ADA has an owner/purpose and supply will not ...
  • 1,945
3 votes
Accepted

Create a Native token for voting & burn afterwards

First of all, there might be better ways to build a voting system than to use native assets as "votes" in the future when we have smart contracts on Cardano. But of course your proposal ...
  • 3,480
3 votes

How do I calculate the fingerprint of an asset?

A Java implementation will be available in cardano-client-lib next release. (0.2.0) For now, you can refer to "calculateFingerPrint" method of this class (see here for tests).
  • 96
3 votes

Difference between staked and delegated tokens?

Stake Your ADA is your stake in the Cardano network. You can do different things with this stake. The most prominent use case is for sure delegating it to a stake pool to secure the network. But you ...
  • 3,480
3 votes

Is ada an asset, token, both, neither?

The terms cryptocurrency, token and asset are not mutually exclusive. However, there are specific definitions that show a subtle difference between these three terms: Cryptocurrency Cryptocurrency is ...
  • 1,747
3 votes

Block Producer vs Relay Node setup

If you want to get started with Cardano, setting up a stake pool can be a good start to learn the basics. You will be able to explore the different cli commands as well as the fundamentals of the ...
3 votes
Accepted

What is the fastest way of getting PolicyId from an Asset Fingerprint?

You can't, the fingerprint is the hash of the policy id and name concatenated. Cryptographic hashes can't be reversed.
3 votes
Accepted

How To Get Transaction Royalityies on Fungable Tokens

This is not possible. Native Tokens are first class citizens on Cardano. They are not part of a smart contract that could enforce behavior like this but are assets in your wallet like ADA. It's the ...
  • 3,480
3 votes
Accepted

How would you implement Soulbound Tokens in Cardano?

Any native asset on cardano can be transferred according to the ledger rules. To make something non-transferrable you would need to make it unspendable. For "pay to pubkey" outputs, this ...
2 votes

Issues with oracle concurrency

Maybe you could add a timestamp in the utxo's datum, to set how long this utxo is valid. And after this time has passed the utxo cannot be used in a transaction except that the smart-contract can ...
2 votes
Accepted

Change minted tokens recepient

Is there any way of making it so that a script, and not a user, receives the amount of tokens minted? Yep. In your tx constraints, you need to both include mustMintValue mintVal and also ...
2 votes
Accepted

How would one go about Gating content through ownership of an NFT?

In the Nami wallet documentation, it says how to interact with the wallet using web-browser, for example you can run window.cardano.enable(), there is a command for queryng UTXOs.. i have not been ...
2 votes

How to burn Cardano token after the 'invalid after' passes?

As Isaac stated, transaction with this policy is not possible anymore. But that does not mean it is not possible to publicly make assets unavailable. There is a great post on the Cardano form that ...
  • 1,737
2 votes

If metadata can be changed, how can the uniqueness of an NFT can be guaranteed?

@Mitchell Turner is right. I want to add this. In Cardano you can mint NFTs using: Native scripts: using this option you're the owner of the policy keys (files) to mint a NFT with that policy Id. ...
  • 1,734
2 votes
Accepted

Are negative values valid quantities in native assets?

Official documentation unambiguously says about it: The minting parameter is now called with a negative value, therefore destroying one token. cardano-cli transaction build --mainnet --alonzo-era ...
  • 1,747
2 votes

send token / asset by cardano-CLI

The tx-out of the build-raw command is the only thing that is different for sending assets. Instead of address+1000000 it will be address+"1000000 + 5 <policy id><<asset name>"...
2 votes

send token / asset by cardano-CLI

The only difference between building a regular ADA-only transaction and one that contains ADA + asset(s) is in the cardano-cli transaction build-raw step that follows the multi-asset syntax as ...
  • 3,489
2 votes
Accepted

What documentation works with handling utxos at the Plutus Script?

on endpoint call sends 1 to the caller and then the rest back to the contract Remember, the on-chain portion of a contract doesn't do anything actively, it only validates transactions. So a more ...
2 votes

Automatically "taxing" native token transactions

I know that royalties can be set for NFT projects. I haven't yet seen royalties set for fungible tokens, but I don't see why it wouldn't be possible. What you're proposing sounds like a 1% royalty. ...
2 votes
Accepted

Token price API

There is this from minswap: https://api-mainnet-prod.minswap.org/coinmarketcap/v2/pairs or this minswap blockfrost adapter: https://github.com/minswap/blockfrost-adapter
  • 46
2 votes

Get list of holders of a token using Cardano-cli or Cardano-DB-Sync or Ogmios

"List of holders" is rather unclear. If you want names, addresses and other KYC/AML stuff you won't be able to get it. Tokens are held in Cardano addresses, and any person could have more ...

Only top scored, non community-wiki answers of a minimum length are eligible