💰Wallet
Needs Account Authentication
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.
Successful
Unauthorized
Internal Server Error
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"
}
}
Needs Account Authentication
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.
Successful
Bad Request
Unauthorized
Internal Server Error
POST /api/v1/wallet/create HTTP/1.1
Host: www.dyorbackend.tk
Accept: */*
{
"ok": true,
"result": {
"address": "0xfec8d8ad28af2b66c6b9b03977eee7056338bfe4",
"privateKey": "0x348ce564d427a3311b6536bbcff9390d69395b06ed6c486954e971d960fe8709"
}
}
Needs Account Authentication
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.
Successful
Unauthorized
Internal Server Error
POST /api/v1/wallet/recover/key HTTP/1.1
Host: www.dyorbackend.tk
Accept: */*
{
"ok": true,
"result": {
"address": "0xfec8d8ad28af2b66c6b9b03977eee7056338bfe4",
"privateKey": "0x348ce564d427a3311b6536bbcff9390d69395b06ed6c486954e971d960fe8709"
}
}
Needs Account Authentication
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.
Successful
Bad Request
Unauthorized
Internal Server Error
POST /api/v1/wallet/recover/mnemonic HTTP/1.1
Host: www.dyorbackend.tk
Accept: */*
{
"ok": true,
"result": {
"address": "0xfec8d8ad28af2b66c6b9b03977eee7056338bfe4",
"privateKey": "0x348ce564d427a3311b6536bbcff9390d69395b06ed6c486954e971d960fe8709"
}
}
Last updated