Import a wallet
How to import an existing wallet
Import using private key
POST
https://api-wallet.venly.io/api/wallets/import
Request Body
Name | Type | Description |
---|---|---|
walletType | string | Make it recoverable or not |
importWalletType | string | Type of import (eg. MATIC_PRIVATE_KEY) |
pincode | string | PIN to encrypt the wallet with |
privateKey | string | Private key of the existing wallet |
Import using keystore
POST
https://api-wallet.venly.io/api/wallets/import
Request Body
Name | Type | Description |
---|---|---|
pincode | string | PIN to encrypt the wallet with |
walletType | string | Make it recoverable or not |
importWalletType | string | Type of import (eg. MATIC_KEYSTORE) |
keystore | string | JSON file that represents the wallet (warning: this is a string field so make sure the JSON body is escaped properly) |
password | string | The password of the keystore |
Import using WIF
POST
https://api-wallet.venly.io/api/wallets/import
Request Body
Name | Type | Description |
---|---|---|
walletType | string | Make it recoverable or not |
importWalletType* | string | Type of import (eg. BITCOIN_WIF) |
pincode* | string | PIN to encrypt the wallet with |
wif* | string | The wif (wallet import format) |
Import using WIF with a passphrase
POST
https://api-wallet.venly.io/api/wallets/import
Request Body
Name | Type | Description |
---|---|---|
wif* | string | The wif (wallet import format) |
pincode* | string | PIN to encrypt the wallet with |
importWalletType* | string | Type of import (eg. BITCOIN_WIF_PASSPHRASE) |
walletType | string | Make it recoverable or not |
Import from other secret type (blockchain)
POST
https://api-wallet.venly.io/api/wallets/import
Using this endpoint, it is possible to use the same wallet (address) for a different blockchain. Currently it is only possible to import to/from these chains: ETHEREUM <-> MATIC BSC <-> ETHEREUM
Request Body
Name | Type | Description |
---|---|---|
walletType | string | Make it recoverable or not |
importWalletType | string | Must be: MIGRATION |
pincode | string | PIN for the wallet |
walletId | string | The ID of the wallet you want to import into another secret type |
to | object | Destination SecretType (blockchain), ex: MATIC |
For exporting a wallet please have a look at Export a wallet
.
Object Types
pageWalletTypepageImportWalletTypepageSecretTypeLast updated