Skip to content

Invalid signature. #2

@lukasz1991a

Description

@lukasz1991a

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions