6 votes

window.cardano undefined

I am using this code in react: const isBrowser = () => typeof window !== "undefined"; export const getCardano = (): Cardano | undefined => { const cardano = isBrowser() && ...
Will's user avatar
  • 1,162
2 votes

How do I create and submit a transaction using only Nami Wallet?

If you are open to integrating with a wallet other than Nami, then Typhon Wallet integration is seamless which does not require you to fetch UTXOs and manually build a transaction. The below snippet ...
Mehul Prajapati's user avatar
2 votes

How do I create and submit a transaction using only Nami Wallet?

On Cardano, a transaction consists of UTxOs spent and UTxOs produced. The Nami wallet has a function to extract its UTxOs: cardano.getUtxos(amount?: Value, paginate?: {page: number, limit: number}) : [...
Jey's user avatar
  • 1,549
2 votes

How do I properly parse the CIP-30 output from NAMI to send a users wallet tokens?

It is hex encoded byteString. You can use the Cardano serialization lib browser https://www.npmjs.com/package/@emurgo/cardano-serialization-lib-browser And the following code in javascript const ...
Alicia Basilio's user avatar
2 votes

Submitting a transaction from cardano-cli with Nami Wallet

The solution remains the same. You must convert the array into the map, commonly done by signing it with throw away keys. Then you get the transaction with the serialization library, free the witness ...
Philip DiSarro's user avatar
2 votes

Where does Nami store private keys?

Here is the GitHub for Nami, as it is open source. Looks like it uses chrome local storage. I believe chromes local data is located in %AppData%\Google\Chrome\User Data\Default\Local Storage atleast ...
intrinsic-values's user avatar
2 votes
Accepted

LightWallet: Empty array for (await api.getUsedAddresses() || await api.getUnusedAddresses() || [])

Thanks to Marcel - founder of eternl I've found my mistake. await api.getUsedAddresses() actually returns an empty array - I thought both calls return undefined and it defaults to []. After calling ...
Will's user avatar
  • 1,162
1 vote
Accepted

How to load test Nami with Vesting example?

I was using the instructor's old API key instead of creating one for myself through blockfrost. I just had to modify the section: async function loadCardano() { const nami = window.cardano.nami; ...
tyvan266's user avatar
1 vote
Accepted

Best light wallets on Cardano?

wallet speed and efficiency depend by how fast they can submit your transaction to the network. For wallets like lace, eternl, nami this is done by a service they rely on. as an example nami relies on ...
Michele Nuzzi's user avatar
1 vote
Accepted

Using testnet with Nami

The currently released version of Nami runs on the old testnet, but here's a vasil-ready branch of it, that you can install separately for testing on the preprod (or preview) testnet: https://github....
sean's user avatar
  • 1,463
1 vote

window.cardano undefined

First of all, window.cardano can be undefined if the user doesn't have a Cardano wallet installed on their browser. Secondly, you don't need to use await with window.cardano as it's not an async ...
Alexis's user avatar
  • 123
1 vote

Can someone show me how to get the transaction in the proper format for cip-30?

You were on the right track, the key is to add --cddl-format to the build command
wutzebaer's user avatar
  • 691
1 vote

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

Integrate with a browser wallet (Nami, ccvault, ...) so users can log in with their wallet on your web-app. Let the users sign a message to prove they really own the wallet. Check on server side if ...
eddex's user avatar
  • 3,828
1 vote

How to add datum to UTXO in nami

Be careful not to confuse metadata and datum, as they are different things. Metadata are part of a transaction, while a datum is part of an UtxO. Metadata are completely optional and to the discretion ...
Jean-Sébastien Gonsette's user avatar
1 vote

How do I create and submit a transaction using only Nami Wallet?

Is a long and awful process, Check this example using version 10.4 for all function definitions check my repo https://github.com/alice1989123/vending_machine/blob/main/Cardano/Wallet/Wallet.js Build ...
Alicia Basilio's user avatar

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