Giter Site home page Giter Site logo

wallet's Introduction

Cashonize

Cashonize is a Bitcoin Cash WebWallet with CashTokens support - cashonize.com
โ— There are scammers impersonating this wallet so carefully check the url! There is no "official" BCH webwallet!

This is the code repository for cashonize.com, a webwallet with CashTokens support. The wallet is built with the mainnet-js library. The project was started in early January as a minimum viable product but has grown into a full-fledged webwallet. Cashonize supports both BCH mainnet and chipnet where all the testing for the CashTokens upgrade took place. The Cashonize wallet has proven helpful to iron out issues, bugs and missing features in the mainnet-js library.

Details

The Webwallet creates a single address wallet which is persisted in between sessions in indexedDb. Cashonize uses the standard derivation path (m/44'/145'/0'/0/0) to create a new wallet but also supports importing from m/44'/0'/0'/0/0. You can back-up the wallet by getting the seed phrase from the settings view. The webwallet uses OpenTokenRegistry & example_bcmr as hardcoded metadata registries for tokenmetadata. After making a transaction a link to a blockexplorer is logged in the console (press F12 to access). The wallet was first hosted on a netlify subdomain (my-cashtokens-webwallet.netlify.app) & a temporary domain (cashtokens-wallet.app) before the current brand (cashonize.com) was worked out, the old urls still works.

Disclaimer

The wallet can now connect to the main BCH network so can be used with real money for the first time. Users should be very cautious as this is brand new software so it should not be used for any significant amounts of money. I as the developer did my best to test the wallet but I make no guarantees to the full security of the wallet. Lastly, always back up your seedphrase!

Faucet

To start experimenting with Cashonize and to create your own CashTokens without any Bitcoin Cash, You can connect the webwallet to chipnet & get a tBCH balance from the chipnet faucet!

Planned features

You can find the planned features on the issues page on GitHub. Feel free to open a new issue to report bugs or suggest improvements! Currently not planning on adding transaction history to the webwallet.

How it was made

The project was started with the help of this getting-started blogpost for mainnet-js. Since the way to import it had been changes with version 1.0.0 as can be read on its github release page. Chota as a styling library and Switchery for toggle switches. For icons the webwallet uses icongr.am. blockies is used to generate blocky identicons for tokens. The publicly available chaingraph instance by Pat is used to query on-chain token info about gensis supply and minting UTXOs. Finally, bitjson/qr-code is used to generate the qr-codes.

Netlify automatically publishes the latest version of this repo: cashonize/wallet.

Special thanks to

bitcoincashautist, mainnet-pat, damascene, samrock5000 & bitjson

wallet's People

Contributors

damascene avatar jimtendo avatar mainnet-pat avatar mr-zwets avatar salemkode avatar

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

Watchers

 avatar  avatar

wallet's Issues

speed up loading metadata

loading token-metadata gets quite slow for wallets with many different tokens, this should be optimized

Problem creating tokens on mainnet

My wallet is funded with,
USD balance: 4.68 $
BCH balance: 0.03997961 BCH

The UI provides no feedback when trying to create fungible tokens.
Supply set to 21000000,
Metadata https,
gist.githubusercontent.com/Sydwell/04b1f4b9059eefbbe633d3e996e246d4/raw

console.error:
[]
script.js:341 [{โ€ฆ}]
mainnet-1.1.16.js:2 Uncaught (in promise) Error: There were no Unspent Outputs
at J.encodeTransaction (mainnet-1.1.16.js:2:320612)
at async J.send (mainnet-1.1.16.js:2:317984)
at async HTMLAnchorElement. (script.js:345:7)
encodeTransaction @ mainnet-1.1.16.js:2

Access seed from old URL

Since wallet.mycashtokens.org is no longer available, I'm unable to access my BCH and minted NFTs. I hadn't yet backed up the seed phrase prior to the URL change. Is there any way for me to retrieve the seed phrase from my browser's stored IndexedDB for the old URL?

Error trying to send to a non-tokenaware cash address

Getting token aware error for this address:

bchtest:zplmasp0hf9txpnyn6krf2cdw88qcq2a3qvda5tyy0

which was derived from:

bchtest:qplmasp0hf9txpnyn6krf2cdw88qcq2a3qt8w29zmu

should be a valid token address.

the address was created with this wallet.

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.