bitaccess / coinlib Goto Github PK
View Code? Open in Web Editor NEWA unified nodejs API for sending and receiving crypto payments
License: MIT License
A unified nodejs API for sending and receiving crypto payments
License: MIT License
Could you please include a fix for this with your erc20 changes
When installing coin-payments:
npm WARN deprecated @types/[email protected]: This is a stub types definition. bip32 provides its own type definitions, so you do not need this installed.
$ npm ls @types/bip32
...
└─┬ @faast/[email protected]
└─┬ @faast/[email protected]
└── @types/[email protected]
is it possible to make trc20 transactions using this library?
I tried to generate the bitcoin wallet address under the configuration. It is inconsistent with the wallet address generated by other wallet programs. I have tried to configure the address type address to generate the address
Legacy = "p2pkh",
SegwitP2SH = "p2sh-p2wpkh",
SegwitNative = "p2wpkh",
The coinPayments object doesn't seem to have a forAsset function as shown in the documentation found in the README.md file and on NPM.
const coinPayments = new CoinPayments({
seed: 'my key'
});
const bchPayments = coinPayments.forAsset('BCH');
await bchPayments.init();
This is the code I'm using, and it simply returns the error TypeError: coinPayments.forAsset is not a function
. I'm using version 4.5.1.
Hi,
I am able to create the xpub, and create as many addresses as I want, but what I want to do is to create a transaction with the amount from all the addresses in a single transfer.. How can I do that?
This creates a transaction from the address with ID 1234 only:
let unsignedTx = await tronPayments.createSweepTransaction(1234, 12345)
have thought to implement USDC token?
Hello
I downloaded and installed the project with npm i
Node version (node -v
) : 12.14.1
And when I run npm run build
I get this error:
npm run build
@bitaccess/[email protected] prebuild /Users/luis/Documents/Personal/cumbi/coinlib
npm run lint && lerna run --parallel prebuild@bitaccess/[email protected] lint /Users/luis/Documents/Personal/cumbi/coinlib
bin/find-bad-imports.sh && eslint packages//src packages//test --ext .ts,.js(node:70122) Warning: require() of ES modules is not supported.
require() of /Users/luis/Documents/Personal/cumbi/coinlib/node_modules/@eslint/eslintrc/universal.js from /Users/luis/Documents/Personal/cumbi/coinlib/node_modules/eslint/lib/linter/linter.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename universal.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /Users/luis/Documents/Personal/cumbi/coinlib/node_modules/@eslint/eslintrc/package.json.Oops! Something went wrong! :(
ESLint: 8.21.0
Error: Failed to load plugin '@typescript-eslint' declared in '.eslintrc.js': Cannot find module 'eslint/use-at-your-own-risk'
Require stack:
- /Users/luis/Documents/Personal/cumbi/coinlib/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js
- /Users/luis/Documents/Personal/cumbi/coinlib/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js
- /Users/luis/Documents/Personal/cumbi/coinlib/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js
- /Users/luis/Documents/Personal/cumbi/coinlib/node_modules/@typescript-eslint/eslint-plugin/dist/index.js
- /Users/luis/Documents/Personal/cumbi/coinlib/node_modules/@eslint/eslintrc/dist/eslintrc.cjs
Referenced from: /Users/luis/Documents/Personal/cumbi/coinlib/.eslintrc.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)
at Function.Module._load (internal/modules/cjs/loader.js:686:27)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (/Users/luis/Documents/Personal/cumbi/coinlib/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
at /Users/luis/Documents/Personal/cumbi/coinlib/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js:34:5
at Object. (/Users/luis/Documents/Personal/cumbi/coinlib/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js:5:60)
at Module._compile (/Users/luis/Documents/Personal/cumbi/coinlib/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
How can I solve it?
can update use dockerFile. also test.js for call function. so we can test with easy
any update latest version ?
Hi
Please Include Doge and Tether.
npm install
Install dependencies for packages and link them together (done by lerna)
npm run bs
Execute tests (done by Jest)
npm run test
use this method
pm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command /usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/root/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm ERR! code 1
npm ERR! npm ERR! path /root/.npm/_cacache/tmp/git-clone-a3b049e3/node_modules/tiny-secp256k1
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command sh -c node-gyp rebuild
npm ERR! npm ERR! make: Entering directory '/root/.npm/_cacache/tmp/git-clone-a3b049e3/node_modules/tiny-secp256k1/build'
npm ERR! npm ERR! CXX(target) Release/obj.target/secp256k1/native/addon.o
npm ERR! npm ERR! make: Leaving directory '/root/.npm/_cacache/tmp/git-clone-a3b049e3/node_modules/tiny-secp256k1/build'
npm ERR! npm ERR! gyp info it worked if it ends with ok
npm ERR! npm ERR! gyp info using [email protected]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.