Quantum
  • Welcome to Quantum
  • Developer portal
    • Pricing
  • Self-Custody Infrastructure
    • Pincode Management
    • Private Key Management
  • Quickstart guide
  • Authentication
    • API Authentication
  • Faucets
  • Networks & URLs
  • Walletify Api
    • Overview
    • Getting started
    • User Management
    • Signing Methods
    • Testnet Assets
    • Basic Guides
      • Create a user
      • Retrieve a user
      • Update a user
      • Delete a user
      • Create a signing method
      • Update a signing method
      • Delete a signing method
      • Create a wallet
      • Retrieve wallet
      • Archive a wallet
      • Import a wallet
      • Export a wallet
      • Retrieve native balance
      • Retrieve ERC20 tokens
      • Retrieve NFTs
      • Transfer a native token
      • Transfer an ERC20 token
      • Transfer an NFT
      • Transfer a fungible token
      • Signatures
      • Read a contract
      • Execute a contract call
      • Get Transaction status
      • Resubmit a transaction
      • Get wallet events
      • Webhooks
    • Advanced Guides
      • Burn an NFT
      • Filter Spam NFTs
      • Filter NSFW NFTs
      • SWAP Token Pairs
      • Gasless/Meta Transactions
      • Sign RAW Transactions
      • Using Fiat Onramp with Walletify-API
      • Deploy an Ethereum contract
      • Integrate with WalletConnect
      • Set Up NFT Token Gating
      • Chain Specific Fields
      • Integrate with WalletConnect
      • Encrypted PIN Transfer
  • Nft Wizard Api
    • Overview
    • Getting started
    • Basic Guides
      • Get any NFT info
      • Get any NFT contract
      • Get NFTs by any wallet
      • Get wallets by any NFT
      • Create contract
      • Retrieve Contract
      • Delete Contract
      • Check Contract Status
      • Retrieve Contract Metadata
      • Update Contract Metadata
      • Create Token-type (NFT template)
      • Retrieve Token-type (NFT template)
      • Delete Token-type (NFT Template)
      • Check Token-type Status
      • Retrieve Token-type Metadata
      • Update Token-type Metadata
      • Mint an NFT
      • Batch Mint NFTs
      • Update NFT Metadata
      • Retrieve NFT Metadata
      • Add Audio to your NFTs
      • Add Video to your NFTs
      • Store NFT Media
      • Webhooks
    • Advanced Guides
      • Mass Minting
      • Speed Up Minting
      • Dynamic NFTs
      • Configure Royalties
      • Create Company Minter Wallet
      • Retrieve Company Minter Wallets
      • Store NFT Metadata on IPFS
      • View NFT on sandbox/testnet
    • NFT Configuration
      • Attributes
      • Animation & Media
      • Collection Info
      • Max Supply
      • Mint Number
      • Burnable
      • Metadata Storage
  • TMINTER API
    • Overview
    • Getting started
    • Basic Guide
      • Retrieve Any NFT Information
      • Retrieve NFT Contract Information
      • Retrieve NFTs by Wallet Address
      • Retrieve Wallets by NFT
      • Create a New NFT Contract
      • Retrieve a Contract
      • Delete a Contract
      • Check Contract Status
      • Retrieve Contract Metadata
      • Update Contract Metadata
      • Create Token-Type
      • Retrieve Token-Type
      • Delete Token-Type
      • Check Token-Type Status
      • Retrieve Token-Type Metadata
      • Update Token-Type Metadata
      • Mint a Single NFT
      • Batch Mint Multiple NFTs
      • Update NFT Metadata
      • Retrieve NFT Metadata
      • Add Audio to Your NFTs
      • Add Video to Your NFTs
      • Store NFT Media
      • Webhooks for NFT Events
    • Advance Guide
      • Dynamic NFT Creation
      • Token Economics and Supply Control
      • Advanced Minting: Royalty Distribution
      • Cross-Chain NFT Minting
      • NFT Sharding (Fractional Ownership)
      • Batch NFT Minting with Custom Metadata
      • Add Interactivity to NFTs
      • Advanced Media Integration: VR and AR
      • Webhook Triggers for Automated Processes
Powered by GitBook
On this page
  • Import Wallet Types
  • 1. Import using private key
  • 2. Import using keystore
  • 3. Import using WIF
  • 4. Import using WIF with a passphrase
  • 5. Import from other secret types (blockchain)
  1. Walletify Api
  2. Basic Guides

Import a wallet

How to import an existing wallet.

Import wallets by specifying the importWalletType. We allow:

  1. Importing using a private key

  2. Importing using a keystore

  3. Importing using a WIF

  4. Importing using a WIF with a passphrase

  5. Migration

Additionally, you can specify the userId in the request body to automatically import the wallet and link it to a user. Note that you need to provide a valid signing method in the header request.

Import Wallet Types

JSON

{
  "importWalletType": {
    "enum": [
      "AETERNITY_KEYSTORE",
      "AETERNITY_PRIVATE_KEY",
      "BSC_KEYSTORE",
      "BSC_PRIVATE_KEY",
      "AVAC_KEYSTORE",
      "AVAC_PRIVATE_KEY",
      "ETHEREUM_KEYSTORE",
      "MATIC_KEYSTORE",
      "ETHEREUM_PRIVATE_KEY",
      "MATIC_PRIVATE_KEY",
      "GOCHAIN_KEYSTORE",
      "GOCHAIN_PRIVATE_KEY",
      "HEDERA_KEYSTORE",
      "HEDERA_PRIVATE_KEY",
      "VECHAIN_PRIVATE_KEY",
      "VECHAIN_KEYSTORE",
      "BITCOIN_WIF",
      "BITCOIN_WIF_PASSPHRASE",
      "LITECOIN_WIF",
      "LITECOIN_WIF_PASSPHRASE",
      "NEO_KEYSTORE",
      "NEO_PRIVATE_KEY",
      "NEO_WIF",
      "IMX_KEYSTORE",
      "IMX_PRIVATE_KEY",
      "ARBITRUM_KEYSTORE",
      "ARBITRUM_PRIVATE_KEY",
      "MIGRATION"
    ]
  }
}

1. Import using private key

HTTP

POST /api/wallets/import
Parameter
Param Type
Value
Description

Signing-Method

Header

id:value

id: This is the ID of the signing method value: This is the value of the signing method

Parameter
Param Type
Description
Data Type
Mandatory

importWalletType

Body

The type of import (eg. MATIC_PRIVATE_KEY)

String

✅

privateKey

Body

The private key of the existing wallet

String

✅

userId

Body

The ID of the user you want to link this wallet to

String

❌

pincode (Deprecated)

Body

The pincode to encrypt the wallet

String

❌

2. Import using keystore

HTTP

POST /api/wallets/import
Parameter
Param Type
Value
Description

Signing-Method

Header

id:value

id: This is the ID of the signing method value: This is the value of the signing method

Parameter
Param Type
Description
Data Type
Mandatory

importWalletType

Body

The type of import (eg. MATIC_KEYSTORE)

String

✅

keystore

Body

JSON file that represents the wallet (warning: this is a string field so make sure the JSON body is escaped properly)

String

✅

password

Body

The password of the Keystore

String

✅

userId

Body

The ID of the user you want to link this wallet to

String

❌

pincode (Deprecated)

Body

The pincode to encrypt the wallet

String

❌

3. Import using WIF

HTTP

POST /api/wallets/import
Parameter
Param Type
Value
Description

Signing-Method

Header

id:value

id: This is the ID of the signing method value: This is the value of the signing method

Parameter
Param Type
Description
Data Type
Mandatory

importWalletType

Body

The type of import (eg. BITCOIN_WIF)

String

✅

wif

Body

The wif (wallet import format)

String

✅

userId

Body

The ID of the user you want to link this wallet to

String

❌

pincode (Deprecated)

Body

The pincode to encrypt the wallet

String

❌

4. Import using WIF with a passphrase

HTTP

POST /api/wallets/import
Parameter
Param Type
Value
Description

Signing-Method

Header

id:value

id: This is the ID of the signing method value: This is the value of the signing method

Parameter
Param Type
Description
Data Type
Mandatory

importWalletType

Body

The type of import (eg. LITECOIN_WIF_PASSPHRASE)

String

✅

wif

Body

The wif (wallet import format)

String

✅

passphrase

Body

The passphrase of the wallet

String

✅

userId

Body

The ID of the user you want to link this wallet to

String

❌

pincode (Deprecated)

Body

The pincode to encrypt the wallet

String

❌

5. Import from other secret types (blockchain)

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

HTTP

POST /api/wallets/import
Parameter
Param Type
Value
Description

Signing-Method

Header

id:value

id: This is the ID of the signing method value: This is the value of the signing method

Parameter
Param Type
Description
Data Type
Mandatory

importWalletType

Body

The type of import (eg. MIGRATION)

String

✅

walletId

Body

The ID of the wallet you want to import into another secret type

String

✅

to

Body

Destination SecretType (blockchain), ex: MATIC

Object

✅

userId

Body

The ID of the user you want to link this wallet to

String

❌

pincode (Deprecated)

Body

The pincode to encrypt the wallet

String

❌

PreviousArchive a walletNextExport a wallet

Last updated 10 months ago

Request Endpoint:

Request Endpoint:

Request Endpoint:

Request Endpoint:

Request Endpoint:

reference
reference
reference
reference
reference