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

# ExportKeyPair

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)

›

ExportKeyPair

com.digitalasset.canton.crypto.admin.v30

# ExportKeyPair

gRPC

RPC

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

## Protocol Details

Protocol
gRPC

Service
VaultService

RPC
ExportKeyPair

Client stream
No

Server stream
No

## Inputs

### ExportKeyPairRequest

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

Client stream
No

`fingerprint`
string

`protocol_version`
int32

`password`
string

## Outputs

### ExportKeyPairResponse

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

Server stream
No

`key_pair`
bytes

## Related Schemas

> [accordion] com.digitalasset.canton.crypto.admin.v30.ExportKeyPairRequest
>
> `fingerprint`
> string
>
> `protocol_version`
> int32
>
> `password`
> string

> [accordion] com.digitalasset.canton.crypto.admin.v30.ExportKeyPairResponse
>
> `key_pair`
> bytes

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/ExportKeyPair <<'EOF'
{
  "fingerprint": "string",
  "protocolVersion": 0,
  "password": "string"
}
EOF
```

OK

application/json

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