> ## 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.

# ImportPublicKey

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)

›

ImportPublicKey

com.digitalasset.canton.crypto.admin.v30

# ImportPublicKey

gRPC

RPC

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

## Protocol Details

Protocol
gRPC

Service
VaultService

RPC
ImportPublicKey

Client stream
No

Server stream
No

## Inputs

### ImportPublicKeyRequest

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

Client stream
No

`public_key`
bytes

`name`
string

## Outputs

### ImportPublicKeyResponse

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

Server stream
No

`fingerprint`
string

## Related Schemas

> [accordion] com.digitalasset.canton.crypto.admin.v30.ImportPublicKeyRequest
>
> `public_key`
> bytes
>
> `name`
> string

> [accordion] com.digitalasset.canton.crypto.admin.v30.ImportPublicKeyResponse
>
> `fingerprint`
> string

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/ImportPublicKey <<'EOF'
{
  "publicKey": "BASE64_ENCODED_BYTES",
  "name": "string"
}
EOF
```

OK

application/json

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