Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

ETH_STARKKEY_NOT_MATCHED ETH_STARKKEY_NOT_MATCHED ETH_STARKKEY_NOT_MATCHED  #338

@megaacheyounes

Description

@megaacheyounes

howdy,
whether I use my own Ethereum wallet private key (which is registered on the exchange) or create a private key using dvf.stark.createPrivateKey() when submitting an order, It always throws this error:

{
  statusCode: 422,
  error: 'ETH_STARKKEY_NOT_MATCHED',
  message: 'ETH_STARKKEY_NOT_MATCHED',
  type: 'DVFError',
  data: {
    ethAddress: '0x0f145**************************************60016', // censored 
    starkKey: '0611b54*************************************************************ed7ff431' // censored 
  }
}

this is my code:

//starkPrivKey = config.PRIVATE_KEY //Ethereum wallet private key
 starkPrivKey = dvf.stark.createPrivateKey()
await dvf.submitOrder({
      symbol: PAIR,
      amount,
      price,
      starkPrivateKey: starkPrivKey
    })

Any suggestion to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions