💰Wallet

Gets a 12 word seed phrase.

get

This route generates a seed phrase.The route first generates a BIP39 12 word mnemonic phrase that can be used to create a wallet.The route then returns the generated phrase.

Responses
200
Successful
application/json
get
GET /api/v1/wallet/mnemonic HTTP/1.1
Host: www.dyorbackend.tk
Accept: */*
{
  "ok": true,
  "result": {
    "mnemonic": "text spend weapon annual true elevator relief fee honey two crunch grunt"
  }
}

Creates wallet from a seed phrase.

post

This route creates a hierarchical deterministic (HD) wallet.The route first gets the seed phrase from the payload and checks for validity.The route then creates a wallet and returns the required data.

body
Responses
200
Successful
application/json
post
POST /api/v1/wallet/create HTTP/1.1
Host: www.dyorbackend.tk
Accept: */*
{
  "ok": true,
  "result": {
    "address": "0xfec8d8ad28af2b66c6b9b03977eee7056338bfe4",
    "privateKey": "0x348ce564d427a3311b6536bbcff9390d69395b06ed6c486954e971d960fe8709"
  }
}

Recovers a wallet account from private key.

post

This route recovers a crypto wallet using the private key.The route first finds the wallet with the given private key.The route then returns the address and private key of the wallet found.

body
Responses
200
Successful
application/json
post
POST /api/v1/wallet/recover/key HTTP/1.1
Host: www.dyorbackend.tk
Accept: */*
{
  "ok": true,
  "result": {
    "address": "0xfec8d8ad28af2b66c6b9b03977eee7056338bfe4",
    "privateKey": "0x348ce564d427a3311b6536bbcff9390d69395b06ed6c486954e971d960fe8709"
  }
}

Recovers a wallet account from seed phrase.

post

This route recovers a crypto wallet using the seed phrase.The route first tests the BIP39 mnemonic seed phrase validity.The route then returns the address and private key of the wallet found.

body
Responses
200
Successful
application/json
post
POST /api/v1/wallet/recover/mnemonic HTTP/1.1
Host: www.dyorbackend.tk
Accept: */*
{
  "ok": true,
  "result": {
    "address": "0xfec8d8ad28af2b66c6b9b03977eee7056338bfe4",
    "privateKey": "0x348ce564d427a3311b6536bbcff9390d69395b06ed6c486954e971d960fe8709"
  }
}

Last updated