Giter Site home page Giter Site logo

nami-wallet-examples's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nami-wallet-examples's Issues

how to add 'datum' in tranasaction

We generate datum script using below :

cardano-cli transaction hash-script-data --script-data-file ${datum_name}.datum

It generates the datum script. once we have datum we need to incluide it into transaction
that is generated on cli again

cardano-cli transaction build
--alonzo-era
--tx-in ${utxoin}
--tx-out ${SCRIPT_ADDR}+${LOCK_AMNT}
--tx-out-datum-hash ${hashes[0]}
--metadata-json-file metadata.json \

How to implment same using "@emurgo/cardano-serialization-lib-browser/" ?

nami.getAddress() to human-readable format

Any idea on how to reverse the hex returned by this method?

The readme says it's Bech32, but I haven't had any luck decoding the result, bech32 decoders refuse it as "too lengthy".

how to achieve this?

We generate datum script using below :

cardano-cli transaction hash-script-data --script-data-file ${datum_name}.datum

It generates the datum script. once we have datum we need to incluide it into transaction
that is generated on cli again

cardano-cli transaction build
--alonzo-era
--tx-in ${utxoin}
--tx-out ${SCRIPT_ADDR}+${LOCK_AMNT}
--tx-out-datum-hash ${hashes[0]}
--metadata-json-file metadata.json \

Please let me know how to do above using nami wallet?

Incorrect MIME type.

Hey I am trying to deploy the build of my react app on local xampp I have used nami wallet integration from this repo. It is throwing me

Uncaught (in promise) TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.

I have added AddType application/wasm to ".htaccess" and also application/wasm wasm to etc/mime.types

What is the workaround or solution for this one?

Inputs Exhausted

The transfer function throws an error saying Inputs_Exhausted even when there are sufficient funds in the Nami wallet.

Error: INPUTS_EXHAUSTED
    at randomSelect (coinSelection.js?bae8:307)
    at eval (coinSelection.js?bae8:247)
    at Array.forEach (<anonymous>)
    at Object.randomImprove (coinSelection.js?bae8:243)
    at async NamiWalletApi._txBuilder (nami.js?8340:541)
    at async NamiWalletApi.transaction (nami.js?8340:249)

How to resolve this issue?

regeneratorRuntime is not defined

When trying to load the app in a browser, I get the following error in the browser console:

Uncaught ReferenceError: regeneratorRuntime is not defined

It appears that the @babel/transform-runtime plugin is not actually installed in .babelrc.

getCollateral() values?

Hi ,
Below code is returning some encoded value.
const c = await this.Nami.getCollateral();
how to get exact collateral? I tried HexToString but not work. Please suggest.

Variable not defined when I use your project in my Application.

I am using react js. When i add your project files in my project it give me error on Nami.js file under nami-js folder.
Line 383:29: 'getAddressHex' is not defined no-undef
Line 384:34: 'Nami' is not defined no-undef
Line 871:28: 'Metadata' is not defined no-undef
Line 878:13: 'aux' is not defined no-undef
Line 1079:22: 'networkId' is not defined no-undef
Line 1085:24: 'networkId' is not defined

Can you please tell who is can be solved when we use in our projects

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.