Skip to content

Open Key Integration

Elaman Nazarkulov edited this page Nov 4, 2021 · 1 revision

Open Key provides solution for creating wallets. Utilizing this mechanism you can create wallets on Bitcoin, Ethereum and Binance Chain.

Open API in this context is the middleware handler from third party requests (SDK, web ui). All requests pass through Open API as Open Key is secured with firewall in our servers, meaning only Open API has access to it.

Definitions of the attributes in json content below:

  • id - Unique text generated by Open Key database to each wallet
  • userId - User id who is creating
  • applicationId - Application id for which user created as gateway
  • blockchain - Constant text specified by Open Key to represent and define blockchain type

To start Open Key creating wallets, Open API sends PUT request to /api/key endpoint with json body

{
    "userId":"99",
    "applicationId":"1",
    "blockchain":"EthereumBlockchain"
}

It returns with body address attribute created

{
    "address":"0x9d86b1b2554ec410eccffbf111a6994910111340",
    "blockchain":"EthereumBlockchain"
}
Clone this wiki locally