Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid signature. #2

Open
lukasz1991a opened this issue Jun 1, 2019 · 0 comments
Open

Invalid signature. #2

lukasz1991a opened this issue Jun 1, 2019 · 0 comments

Comments

@lukasz1991a
Copy link

Hellow.
Please help me what I'm doing wrong. I have an invalid signature every time. I use only examples.

in in file user.js
const user = {
address: 'e93184364e00D49E37B80014e7F247fbeEA71Bdd',
privateKey: '9570c1f9b...' //my 64 char ETH private key...
}

in config.js
const config = {
API_URL: 'https://api.switcheo.network/v2',
CONTRACT_HASH: '0x6ee18298fd6bc2979df9d27569842435a7d55e65'
}

in file exampleOrderParams.js
{
pair: 'SWTH_ETH',
blockchain: 'eth',
address: user.address,
side: 'buy',
price: (0.0001).toFixed(8),
wantAmount: toAssetAmount(200.5, 'SWTH'),
useNativeTokens: true,
orderType: 'limit',
privateKey: user.privateKey
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant