Skip to content

Quorum approvals

Privy enables your app to configure quorum approvals on wallet actions, so that signatures from m-of-n authorization keys are required in order to take action using the wallet.

To create a wallet that requires quorum approvals, specify the authorization_key_ids and authorization_threshold.

To request a wallet signature using quorum approvals, specify a list of comma-delimited signatures in the 'privy-authorization-signature' header. The wallet action will be only be executed if the threshold number of approval signatures are provided.

Example

For example, a sample request to create a new EVM wallet with quorum approvals (2 of 3) might look like the following:

bash
curl --request POST https://api.privy.io/v1/wallets \
-u "<your-privy-app-id>:<your-privy-app-secret>" \
-H "privy-app-id: <your-privy-app-id>" \
-H "privy-authorization-signature: <authorization-signature-for-request>" \
-H 'Content-Type: application/json' \
-d '{
  "chain_type": "ethereum",
  "authorization_key_ids": [
    "onz3itqhcx667gz3lyxjofui",
    "j0uov7pqoy7bnqrt7612prr0",
    "eexjdc5g72vfzzqdl7sb1vbj",
  ],
  "authorization_threshold": 2,
}'

A successful response will look like the following:

json
{
  "id": "fmfdj6yqly31huorjqzq38zc",
  "address": "0xf9f284C7Eaf97b0f9B5542d83Af7F785D12E803a",
  "chain_type": "ethereum"
}