{
  "x402Version": 2,
  "id": 13570,
  "slug": "13570",
  "resource": "https://api.sandbox.brickken.com/x402/rams/grant-principal",
  "description": "Prepare ERC-8226 RAMS principal compliance grant. Grant a principal compliance record. The transaction must be signed by the ComplianceProvider owner.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:84532",
      "payTo": "0x6b0173489007dE9E2e619eccd98E8fa9c610849a",
      "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
      "amount": "5000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "chainId": "84532",
            "executionMode": "client-signed",
            "identityRef": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
            "principal": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
            "signerAddress": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "executionMode": "client-signed",
            "info": {
              "contractAddress": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
              "mode": "direct"
            },
            "transactions": {
              "data": "0xaaaaaaaa",
              "to": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
              "value": "0x0"
            },
            "txId": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": true,
                "properties": {
                  "chainId": {
                    "default": "84532",
                    "description": "RAMS is deployed on Base Sepolia (chain ID 84532) and Ethereum Sepolia (chain ID 11155111). Pass chainId explicitly to target the other one.",
                    "examples": [
                      "84532"
                    ],
                    "type": "string"
                  },
                  "complianceProviderAddress": {
                    "description": "Optional ComplianceProvider contract override.",
                    "pattern": "^0x[a-fA-F0-9]{40}$",
                    "type": "string"
                  },
                  "email": {
                    "description": "Alias for ownerEmail where supported.",
                    "format": "email",
                    "type": "string"
                  },
                  "executionMode": {
                    "default": "client-signed",
                    "description": "RAMS defaults to client-signed execution and also supports client-broadcast. Sign with the wallet that holds the required on-chain role. Mandate lifecycle operations may additionally use brickken-relayed execution with a principal EIP-712 signature and deadline.",
                    "enum": [
                      "client-signed",
                      "client-broadcast"
                    ],
                    "type": "string"
                  },
                  "expiresAt": {
                    "description": "Optional Unix expiry; 0 means no expiry.",
                    "oneOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "gasLimit": {
                    "description": "Optional explicit gas limit.",
                    "oneOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  "identityRef": {
                    "description": "Non-zero compliance identity reference.",
                    "pattern": "^0x[a-fA-F0-9]{64}$",
                    "type": "string"
                  },
                  "nonce": {
                    "description": "Optional explicit nonce when managing nonces manually.",
                    "type": "number"
                  },
                  "ownerEmail": {
                    "description": "Optional owner attribution email.",
                    "format": "email",
                    "type": "string"
                  },
                  "principal": {
                    "description": "Principal receiving the compliance record.",
                    "pattern": "^0x[a-fA-F0-9]{40}$",
                    "type": "string"
                  },
                  "signerAddress": {
                    "description": "Wallet that will sign the prepared transaction. Omit only for brickken-relayed lifecycle calls carrying a principal EIP-712 signature.",
                    "pattern": "^0x[a-fA-F0-9]{40}$",
                    "type": "string"
                  }
                },
                "required": [
                  "chainId",
                  "executionMode",
                  "signerAddress",
                  "principal",
                  "identityRef"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "api.sandbox.brickken.com",
  "lastUpdated": "2026-09-03T10:33:19.056Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-03T10:33:18.252Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.sandbox.brickken.com",
    "manifest_name": "api.sandbox.brickken.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}