Policy Engine
Get policy by ID
Get a policy by its ID.
GET
Get policy by ID
Authorizations
A JWT signed using your CDP API Key Secret, encoded in base64. Refer to the Generate Bearer Token section of our Authentication docs for information on how to generate your Bearer Token.
Path Parameters
Response
Successfully retrieved policy.
rules
(SignEvmTransactionRule · object | SendEvmTransactionRule · object | SignEvmMessageRule · object | SignEvmTypedDataRule · object | SignSolTransactionRule · object | SendSolTransactionRule · object | SignSolMessageRule · object | SignEvmHashRule · object | PrepareUserOperationRule · object | SendUserOperationRule · object | SignEndUserEvmTransactionRule · object | SendEndUserEvmTransactionRule · object | SignEndUserEvmMessageRule · object | SignEndUserEvmTypedDataRule · object | SignEndUserEvmHashRule · object | SignEndUserSolTransactionRule · object | SendEndUserSolTransactionRule · object | SignEndUserSolMessageRule · object | SendEndUserEvmAssetRule · object | SendEndUserSolAssetRule · object | SendEndUserOperationRule · object | CreateEndUserEvmSwapRule · object)[]
required
A list of rules that comprise the policy. Each policy is limited to 100 rules and a total serialized size of 8 MiB.
A rule that limits the behavior of an account.
- SignEvmTransactionRule
- SendEvmTransactionRule
- SignEvmMessageRule
- SignEvmTypedDataRule
- SignSolTransactionRule
- SendSolTransactionRule
- SignSolMessageRule
- SignEvmHashRule
- PrepareUserOperationRule
- SendUserOperationRule
- SignEndUserEvmTransactionRule
- SendEndUserEvmTransactionRule
- SignEndUserEvmMessageRule
- SignEndUserEvmTypedDataRule
- SignEndUserEvmHashRule
- SignEndUserSolTransactionRule
- SendEndUserSolTransactionRule
- SignEndUserSolMessageRule
- SendEndUserEvmAssetRule
- SendEndUserSolAssetRule
- SendEndUserOperationRule
- CreateEndUserEvmSwapRule
Example:
Example: