Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/troggy/colu-copay-addon
https://github.com/troggy/colu-copay-addon
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/troggy/colu-copay-addon
- Owner: troggy
- Created: 2016-01-08T14:05:22.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-23T23:31:26.000Z (about 8 years ago)
- Last Synced: 2025-01-03T01:09:49.651Z (18 days ago)
- Language: JavaScript
- Size: 3.58 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[Copay](https://github.com/bitpay/copay) addon with support for [Colu](http://colu.co).
Not really an addon, since Copay doesn't have addon system, but rather an easy to drop in
bunch of code that makes Copay aware of ColoredCoins. Works for Copay 2.7.0+, may not work with other versions.# Setup
You can either use Colu SDK or Colu API with this addon. Depending on your choice set up will be slightly different.
## Option 1. Using Colu SDK.
Colu wallet code will be bundled into your app.
1. Load ``colu-copay-addon.js`` somewhere in your app's html files.
2. Use ``coluConfigProvider`` to set Colu API key. You can find your key in Colu Dashboard.
````
coluConfigProvider.config({
mode: 'sdk',
apiKey: ''
});
````## Option 2. Using Colu API.
You will need to run Colu Server somewhere. This option is mostly useful if you want to build mobile application — you don't need to include all the Colu wallet code into your app making your app smaller in size and thus faster to load.
1. Load ``colu-copay-addon.rpc-only.js`` somewhere in your app's html files.
2. Use ``coluConfigProvider`` to point to your Colu Server instance.
````
coluConfigProvider.config({
mode: 'rpc',
rpcConfig: {
livenet: {
baseUrl: '', // Colu JSON RPC host
authName: '', // (optional) Colu JSON RPC username for Basic Auth
authSecret: '', // (optional) Colu JSON RPC password for Basic Auth
},
testnet: {
baseUrl: '', // Colu JSON RPC host
authName: '', // (optional) Colu JSON RPC username for Basic Auth
authSecret: '', // (optional) Colu JSON RPC password for Basic Auth
}
}
});
````