Skip to content

Turnkey

Turnkey is a crypto infrastructure platform that provides secure key management and wallet-as-a-service solutions for developers building Web3 applications. The platform focuses on enterprise-grade security and compliance while offering APIs that allow developers to integrate sophisticated cryptographic operations without managing the underlying security infrastructure themselves.

Usage

To enable Turnkey you need to add its api_public_key, api_private_key, organization_id and wallet_id in the YAML under the turnkey key:

rrelayer.yaml
name: first-rrelayer
description: "my first rrelayer"
api_config:
  port: 3000
  authentication_username: "${RRELAYER_AUTH_USERNAME}"
  authentication_password: "${RRELAYER_AUTH_PASSWORD}"
signing_provider: 
  turnkey:  
    api_public_key: "${TURNKEY_PUBLIC_KEY}"
    api_private_key: "${TURNKEY_PRIVATE_KEY}"
    organization_id: "${TURNKEY_ORG_ID}"
    wallet_id: "{TURNKEY_WALLET_ID}"

You then need to add the turnkey credentials to the .env

TURNKEY_PUBLIC_KEY=YOUR_TURNKEY_PUBLIC_KEY
TURNKEY_PRIVATE_KEY=YOUR_TURNKEY_PRIVATE_KEY
TURNKEY_ORG_ID=YOUR_TURNKEY_ORG_ID
TURNKEY_WALLET_ID=YOUR_TURNKEY_WALLET_ID

You can get the turnkey credentials from the Privy developer dashboard.