> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# ImportKeyPair

Shared Administration

›

[Protobuf](https://docs.canton.network/reference/admin-api/protobuf/overview.md)

›

[com.digitalasset.canton.crypto.admin.v30](https://docs.canton.network/reference/admin-api/protobuf/packages/com-digitalasset-canton-crypto-admin-v30.md)

›

ImportKeyPair

com.digitalasset.canton.crypto.admin.v30

# ImportKeyPair

gRPC

RPC

`/com.digitalasset.canton.crypto.admin.v30.VaultService/ImportKeyPair`

## Protocol Details

Protocol
gRPC

Service
VaultService

RPC
ImportKeyPair

Client stream
No

Server stream
No

## Inputs

### ImportKeyPairRequest

Message
com.digitalasset.canton.crypto.admin.v30.ImportKeyPairRequest

Client stream
No

`key_pair`
bytes

`name`
string

`password`
string

## Outputs

### ImportKeyPairResponse

Message
com.digitalasset.canton.crypto.admin.v30.ImportKeyPairResponse

Server stream
No

## Related Schemas

> [accordion] com.digitalasset.canton.crypto.admin.v30.ImportKeyPairRequest
>
> `key_pair`
> bytes
>
> `name`
> string
>
> `password`
> string

> [accordion] com.digitalasset.canton.crypto.admin.v30.ImportKeyPairResponse

grpcurl

```bash grpcurl theme={"theme":{"light":"github-light","dark":"github-dark"}}
# Add -plaintext if the server is not using TLS.
grpcurl \
  -d @ \
  <HOST:PORT> \
  com.digitalasset.canton.crypto.admin.v30.VaultService/ImportKeyPair <<'EOF'
{
  "keyPair": "BASE64_ENCODED_BYTES",
  "name": "string",
  "password": "string"
}
EOF
```

OK

application/json

```json OK theme={"theme":{"light":"github-light","dark":"github-dark"}}
{}
```
