Skip to main content
MPCVault supports both gRPC and REST with identical functionality.

Comparison

gRPCREST
Endpointapi.mpcvault.com:443https://api.mpcvault.com/v1
PerformanceFaster (binary protocol)Standard HTTP/JSON
Client librariesAuto-generated from ProtobufUse any HTTP client
Best forHigh-frequency operationsSimple integrations

REST Example

curl -X POST https://api.mpcvault.com/v1/getWalletList \
  -H "Content-Type: application/json" \
  -H "x-mtoken: YOUR_API_TOKEN" \
  -d '{"vaultUuid": "your-vault-uuid"}'

gRPC Example

import grpc
from mpcvault import wallet_pb2, wallet_pb2_grpc

# Create secure channel
channel = grpc.secure_channel(
    'api.mpcvault.com:443',
    grpc.ssl_channel_credentials()
)

# Create stub
stub = wallet_pb2_grpc.WalletServiceStub(channel)

# Make request with metadata
metadata = [('x-mtoken', 'YOUR_API_TOKEN')]
response = stub.GetWalletList(
    wallet_pb2.GetWalletListRequest(vault_uuid="your-vault-uuid"),
    metadata=metadata
)

Protobuf Definitions

Full Protobuf definitions and examples are available at: github.com/mpcvault/mpcvaultapis