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() && ...
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 ...
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}) : [...
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 ...
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 ...
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 ...
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 ...
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;
...
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 ...
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....
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 ...
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
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
nami × 17nami-wallet × 4
transaction × 3
wallet × 2
nft × 2
native-assets × 2
testnet × 2
minting × 2
ccvault × 2
lightwallet × 2
plutus-pioneer-program × 1
cardano-cli × 1
address × 1
metadata × 1
python × 1
cbor × 1
private-key × 1
webapp × 1
cardano-serialization-lib × 1
datum × 1
cip × 1
cip30 × 1
eternl × 1
lace-wallet × 1