Get a policy
Use the PrivyClient
’s getPolicy
method to get a policy by its ID.
Use the PrivyClient
’s getPolicy
method to get a policy by its ID.
To get a policy by its ID, make a GET
request to:
Replacing <policy_id>
with the ID of your desired policy.
Response
A successful response will return the following fields:
Unique ID for the policy.
Version of the policy. Currently, 1.0 is the only version.
Name to assign to policy.
Chain type for wallets that the policy will be applied to.
A list of Rule
objects describing what rules to apply to each RPC method (e.g.
'eth_sendTransaction'
) that the wallet can take. Learn more about
Rules
.
The key quorum ID of the owner of the policy, whose signature is required to modify the policy.
Example
A sample request to fetch a policy with ID fmfdj6yqly31huorjqzq38zc
looks like:
Response
A successful response will look like the following: