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 ...
user avatar
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 ...
user avatar
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 | ...
user avatar
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 ...
user avatar
  • 351
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 ...
user avatar
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 ...
user avatar
  • 1,488
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 1,927
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 ...
user avatar
  • 3,026
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 ...
user avatar
  • 3,026
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 ...
user avatar
  • 1,597
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 ...
user avatar
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).
user avatar
  • 96
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 ...
user avatar
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.
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 1,597
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. ...
user avatar
  • 1,624
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 ...
user avatar
  • 803
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 ...
user avatar
  • 2,961
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 ...
user avatar
1 vote

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

You could send it to a wallet you control then destroy any record of your credentials :)
user avatar
1 vote

cardano-cli transaction build-raw error

You need to subtract the fee from $receiver_output.
user avatar
1 vote

How are airdrops sent to token holders when NFTs do not belong to contracts?

Having the NFT on an UTxO on your address is the proof of ownership. How the token holders receive an airdrop (automatically or only after claiming it) only depends on how the one doing the airdrop ...
user avatar
1 vote
Accepted

cardano-cli transaction submit example with native assets

MY_ADDR=addr_test1qzl6m... #Send lovelace change to my address CHANGE_ADDR=$MY_ADDR MY_UTXO_IN=123456789123465#0 RECEPIENT_ADDR=addr_test1... # Build tx cardano_cli transaction build \ --alonzo-...
user avatar
  • 369
1 vote

How to send a native token using the cardano-cli?

This script can be useful for you https://github.com/invictusappscom/cardano-terminal-wallet/blob/e07119c6130adc36512f30bb554518784e177dc7/send-token.sh For more info check point 6 at README.md https:/...
user avatar
  • 369
1 vote

How to send a native token using the cardano-cli?

Here is a good explanation of the process to build and submit a transaction. In your case, your build-raw command should be similar to this: cardano-cli transaction build-raw \ --fee <fee> \ ...
user avatar
  • 1,624

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