Questions tagged [native-assets]

tokens created on the Cardano network

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

How can I build a transaction to send different assets (not just ada) using Cardano Serialization Lib?

I have followed this example on how to create a transaction to send ada and I had no issues so far. What I would like to do next is to add different assets to this same transaction. Is there an ...
user avatar
0 votes
1 answer
35 views

Problem with metadata on pool.pm

I am having some trouble with metadata for NFT I am minting. This is the asset on pool.pm: https://pool.pm/asset1q6fku9qrfld526pfdm746qu3j7wtgvuh5xet9u And again on adaptors.org: https://adapools.org/...
user avatar
0 votes
0 answers
22 views

Nami wallet's getUtxos method no giving sufficient utxos

Nami is a great wallet, I have been able to create any ADA Tx easily. However, now I am trying to create Tx's with assets along ADA, but when I call getUtxos() it gives me insufficient utxos to ...
user avatar
  • 21
1 vote
2 answers
44 views

How to create a Cardano private network

I need help with a project proposal, but I think this topic could be interesting for many developers and architects. Does somebody know how to start to build a private Cardano network or where I can ...
user avatar
1 vote
2 answers
56 views

How can I allow users to update a public array of data based on whether they own a token or not?

I want to construct public lists that can be altered by people who own a specific token. Is there a way I can group data together into an array like structure and allow users to append to it? I ...
user avatar
0 votes
1 answer
103 views

Cardano-cli error: "Invalid argument `"type":'"

I'm new and I'm following cardano developers tutorial to create NFT. I arrived at some modified code for what I wanted to do. But get this "Invalid argument `"type":'" error. When ...
user avatar
  • 1
0 votes
0 answers
9 views

When to divide Multi asset Qty by 1m and when not?

I'm working with querying Cardano onchain data using DbSync and finding that a multi asset quantity of say 10,000,000,000 Sundae tokens equates to 10,000 Sundae tokens as seen on the blockchain ...
user avatar
  • 223
3 votes
1 answer
67 views

Properly (safely) verify that transaction contains an Cardano Native Token or NFT

All the available on-chain validator programs that limit certain redeemer actions to transactions containing an NFT use hasToken :: TxOut -> Bool hasToken txOut = assetClassValueOf (txOutValue ...
user avatar
1 vote
2 answers
80 views

How to embed smart contract in website

I am creating a dapp website and which will reward it's users on completing different tasks. I have to create cardano native tokens. My question is that how can I send, lock and burn native tokens ...
user avatar
1 vote
2 answers
52 views

How can I grant an NFT holder a one time action in a web app?

I would like users to be able to perform a one time action on a web app, i.e. claiming one physical item per NFT owned, what would be the best way to keep track of tokens that have already claimed ...
user avatar
0 votes
2 answers
74 views

How to figure out what address to query for utxos when minting

Following the iohk guide to minting assets we identify the input utxo using the following command: cardano-cli query utxo --address $address --testnet-magic 1097911063 This is all well and good if ...
user avatar
1 vote
1 answer
54 views

How can I get the wallet distribution of a token?

I'd like to determine the number of wallet holders for (example) Lobster holders ClayNation owners How can I query this with a full node?
user avatar
0 votes
2 answers
59 views

Cardano-Cli Transactions with Assets Utxo

I am getting an error when trying to send a transaction with the following Utxos: TxHash TxIx Amount --------------------------------...
user avatar
3 votes
2 answers
256 views

What is the value of ADA locked in a Native token?

I was wondering, if ADA locked in an native asset is equally valuable? For me it is like if somebody put a draw on a ticket but there are other implications: it can give trouble when making ...
user avatar
1 vote
2 answers
86 views

Are negative values valid quantities in native assets?

In Cardano's Alonzo CDDL (Concise Data Definition Language) specification, it seems that the value of an asset could be negative. Is it correct? If the above assumption is correct, I am wondering how ...
user avatar
  • 323
3 votes
2 answers
517 views

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

Let's say, there's manufacturer that produces luxury watches, and he uses Cardano NFTs to track their authenticity. He embeds unique serial number of a watch into metadata of NFT. One watch - one NFT,...
user avatar
0 votes
1 answer
23 views

ad-hoc policy lock

It's possible to create a policy which can no longer be used to mint/burn after a given slot. The following object in a policy.script handles that: { "type": "before", &...
user avatar
11 votes
2 answers
113 views

Where can I find design and documentation resources on Plutus Staking smartcontracts?

When I was exploring haddock of Plutus I have found that Plutus script can have Rewarding ScriptPurpose: data ScriptPurpose = Minting CurrencySymbol | Spending TxOutRef | Rewarding ...
user avatar
0 votes
0 answers
34 views

Nodejs Native token transaction

I am looking to build a native token transaction in nodeJS using either Cardanocli-Js or Cardano-wallet js but the documentation is massively lacking can anyone give me an example i can look over to ...
user avatar
3 votes
0 answers
40 views

How to mint mint NFT with StateMachine

I would like to mint an NFT in a particular state of the state machine Does anyone know where I can find some examples?
user avatar
1 vote
1 answer
205 views

How does one-time minting policy actually work?

In week 5 of plutus-pioneer-program with NFT example this plutus minting policy code is provided: {-# INLINABLE mkPolicy #-} mkPolicy :: TxOutRef -> TokenName -> () -> ScriptContext -> ...
user avatar
0 votes
2 answers
32 views

Is there an easy way to see how many NFT's exist on the Cardano blockchain?

I would like to get the number of all NFT's ever created on Cardano. This means all native assets with a supply of 1. Is there a website where I can find this information or are there tools that can ...
user avatar
  • 3,121
0 votes
1 answer
82 views

Question about policy ID for native assets

If the policy ID for a some native token looks like this: { "keyHash": "wfwrfasdfasdfsadk4tjwljaldk1234567789123455678", "type": "sig" } Can the token be ...
user avatar
  • 135
0 votes
2 answers
185 views

Why is ADA locked up with native assets and can it be detached from the native assets?

In Yoroi I can see that there is some ADA locked up with my native assets: Can I spend this ADA without the native asset? If I would not care about the native asset, could I create a transaction that ...
user avatar
  • 3,121
0 votes
2 answers
66 views

cardano-cli transaction build-raw error

I've minted 1,000,000,000,000,000 SLIME coin following this guide https://developers.cardano.org/docs/native-tokens/minting/#prerequisites but I'm getting an error at the "Sending tokens to a ...
user avatar
  • 135
1 vote
1 answer
79 views

About building a transaction using the cli

I've been following this guide https://developers.cardano.org/docs/native-tokens/minting to mint some native tokens but the process of sending native tokens to an address that has multiple UTXOs when ...
user avatar
  • 135
1 vote
2 answers
65 views

What is the output from a transaction when burning tokens?

I'm submitting a transaction to burn token to the blockfrost API and receives the following error (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (UtxoFailure ...
user avatar
0 votes
1 answer
256 views

cardano-cli transaction submit example with native assets

I'm having trouble using the cardano-cli to send one tx. I have one address with 9 ADA and 10,000,000 each of two tokens with the same minting policy and I want to send 5,000,000 ADA of each token to ...
user avatar
  • 135
0 votes
2 answers
233 views

Why does 'cardano-cli query utxo --address $address --mainnet' return an empty list?

I'm trying to list all the utxo's at my Yoroi wallet address. I set the variable 'address' as my receiving address but when I run the command, cardano-cli query utxo --address $address --mainnet, ...
user avatar
  • 135
0 votes
1 answer
18 views

Can a native asset have different rules for minting and burning when using SimpleScripts?

Could I for example have one key to only be used for minting tokens and another only for burning? Or does this require Plutus script?
user avatar
1 vote
2 answers
298 views

Can Nami wallet provide the TransactionWitnessSet for minting a native asset?

I'm trying to mint a native asset reusing the keys that Nami already uses. This is to make a minting service that is connected to a specific wallet, and that wallet is always able to mint more tokens ...
user avatar
2 votes
2 answers
82 views

Is it possible to specify metadata for native asset on-chain?

I know about token registry, which is off-chain, but I noticed that some tokens such as HOSKY are not in token registry and yet they have logo, description, URL and coin name visible on pool.pm. Is it ...
user avatar
  • 175
0 votes
1 answer
130 views

OutputTooSmallUTxO error

I'm following these steps and I get the OutputTooSmallUTxO error. Not sure what I missed from the steps but here's my parameters and the error as a whole. tokenname1="Testtoken" tokenname2=&...
user avatar
0 votes
1 answer
56 views

Is it possible to change the name of a minted native asset?

Native assets are defined by a fingerprint. This is decoupled from the name, so far as I know. Is it possible to modify the name of the asset after minting it?
user avatar
2 votes
1 answer
90 views

Using cardano-wallet to mint native assets

The cardano-wallet api documentation describes an endpoint which appears useful for minting native assets (https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/mintBurnAssets). ...
user avatar
1 vote
1 answer
91 views

Get a list of top asset hodlers for a specific asset

I'm using the Blockfrost API to get a list of the top holders of an asset. ie. The people with the highest quantity of this asset in their wallet. I'm using Blockfrost's API, and the specific call I'm ...
user avatar
  • 13
2 votes
1 answer
80 views

Minting Native Assests - Error Building the Raw Transaction: $output variable

I'm following this doc on how to mint native assets with Cardano and have received an error that I can't get around. The problem is with the $output variable in the $tx-out parameter of the cardano-...
user avatar
0 votes
0 answers
36 views

How to check the minting policy script for an asset [duplicate]

Given the policy ID of an asset, how can one find out its' minting policy script (validation rules)? I've used CardanoScan so far. It is able to show the current token supply, holders and transactions ...
user avatar
1 vote
2 answers
116 views

Airdrop Mechanism

I'm trying to find information about native token Airdrops. What is the mechanism? For example, the user send 5 ADA to the wallet of the project and the smart contract will send you back (2.5 x Amount ...
user avatar
5 votes
1 answer
811 views

How to mint multiple NFT assets in the same transaction?

The developer guide doesn't cover this. Here is an example of what I'm trying to do: https://cardanoscan.io/transaction/e1c7bc707e56bf37b4325dc4b7fe524eafe8ca746e54746d60b321588ffebb6c?tab=tokenmint I ...
user avatar
1 vote
1 answer
62 views

Staking native assets (to stake pools)?

Is there support built in to Cardano for stake pools to receive staking of native assets? For example, the Meld Protocol plans to include staking of Meld tokens. Are they likely to / able to use (...
user avatar
  • 444
3 votes
2 answers
159 views

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

My token policy script is: all: [ { invalidAfter: 40951072 }, { pubKey: "36ed345d252a242ad67072db79e5736866fa58ebe3fd782739208ef6" }...
user avatar
1 vote
3 answers
132 views

Burn token using blockfrost java sdk?

Does anyone have an example how to burn a NFT using the blockfrost.io java SDK or Javascript SDK? Thanks a lot in advance.
user avatar
  • 11
0 votes
1 answer
157 views

How to search for an NFT asset name?

Let's say, I have created an asset with name 'xyz' and I want to search for all the nfts with this asset name on the chain. How and where do I do that ?
user avatar
3 votes
2 answers
126 views

Is ada an asset, token, both, neither?

According to the docs, ADA is an asset and a token, but they also indicate that tokens are on-chain versions of some off-chain asset. They also compare ADA and tokens in ways to imply that they are ...
user avatar
3 votes
1 answer
39 views

checkMintedSymbol

What exactly this function is validating? checkMintedSymbol :: Bool checkMintedSymbol = case flattenValue (txInfoMint info) of [(cs', _, _)] -> cs' == ownCurrencySymbol ctx _ -&...
user avatar
  • 133
3 votes
1 answer
118 views

Define a native token minting policy restricted by NFT

I have found examples indicating that a minting policy can be single shot or restricted by PubKeys, however I would like to secure minting and burning of a token based on if a specific NFT is present ...
user avatar
  • 175
0 votes
1 answer
224 views

How can I mint a token without a name for NFT royalties?

The proposal for Cardano NFT royalties CIP-0027 suggests that a nameless token should be used to store the royalties information. Usually a mint transaction looks something like this: cardano-cli ...
user avatar
  • 3,121
3 votes
1 answer
269 views

How to send a transaction for Cardano native assets via CLI?

For example to list UTXO is something like this cardano-cli query utxo —mainnet —address addrX which returns as an example TxHash TxIx ...
user avatar
  • 63
4 votes
2 answers
94 views

What is the most trusted Third party tool for Minting Native Tokens on cardano?

I have come across many Third party minting sites, however, I have a security concern, as per the keys, and policies. So what is the most trusted Third party tool for Minting Native Tokens on cardano?
user avatar