avax.importKey

Give a user control over an address by providing the private key.

🚧

Not recommended for use on Mainnet.

Description

Give a user control over an address by providing the private key that controls the address.

Signature:

avax.importKey({  
    username: string,  
    password:string,  
    privateKey:string  
}) -> {address: string}

Request:

  • Add privateKey to username's set of private keys.

Response:

  • address is the address username now controls with the private key. It will be in hex format.

Language
Authorization
Header
Click Try It! to start a request and see the response here!