Skip to content

Create a wallet limit policy

Request

Create a wallet limit policy for the specified wallet

Security
TokenAuth
Path
vaultIdstringrequired

The vault ID

walletIdstringrequired

The wallet ID

Bodyapplication/jsonrequired
limitQtystringrequired

The limit quantity

Example:"200.00"
durationstring

The limit duration

Example:"200s"
limitTypestring(v2LimitType)required

The limit type

Enum:"PER_TX""CONSTANT""ROLLING_DURATION"
Example:"PER_TX"
contractstring

The contract/issuing address

Example:"0xdAC17F958D2ee523a2206206994597C13D831ec7"
symbolstringrequired

The asset symbol

Example:"USD"
matchersArray of objects(v2Matcher)
blockchainstring(v2Blockchain)

The blockchain for this policy. If not specified, defaults to the wallet's blockchain.

Enum:"AVALANCHE""ETHEREUM""XRP_LEDGER""POLYGON""BNBCHAIN""BASE""HEDERA""ARBITRUM""ONE_MONEY""SOLANA"
Example:"ETHEREUM"
curl -i -X PUT \
  'https://docs.ripple.com/_mock/products/wallet/api-docs/palisade-api/palisade-api/v2/vaults/{vaultId}/wallets/{walletId}/policy-rules/limits' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "limitQty": "200.00",
    "duration": "200s",
    "limitType": "PER_TX",
    "contract": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
    "symbol": "USD",
    "matchers": [
      {
        "type": "USER",
        "value": "string",
        "values": [
          "string"
        ]
      }
    ],
    "blockchain": "ETHEREUM"
  }'

Responses

Bodyapplication/json
idstringrequired

The wallet limit policy ID

Example:"ce4918bf-a199-4ce2-85a3-d0d296855384"
createdBystringrequired

The creator ID

Example:"ce4918bf-a199-4ce2-85a3-d0d296855384"
walletIdstringrequired

The wallet ID

Example:"ce4918bf-a199-4ce2-85a3-d0d296855384"
vaultIdstringrequired

The vault ID

Example:"ce4918bf-a199-4ce2-85a3-d0d296855384"
limitQtystring

The limit quantity

Example:"200.00"
durationstring

The limit duration

Example:"200s"
limitTypestring(v2LimitType)required

The limit type

Enum:"PER_TX""CONSTANT""ROLLING_DURATION"
Example:"PER_TX"
createdAtstring, (date-time)required

The date and time the wallet limit policy was created

Example:"2022-03-29T10:22:22.420Z"
updatedAtstring, (date-time)required

The date and time the wallet limit policy was updated

Example:"2022-03-29T10:22:22.420Z"
assetobject(commonv2Asset)required
matchersArray of objects(v2Matcher)
statusstring(v2WalletLimitStatus)required

The wallet limit status

Enum:"LIMIT_CREATED""LIMIT_ENABLED""LIMIT_REJECTED""LIMIT_DELETED""LIMIT_ERROR""LIMIT_CREATION_APPROVAL_PENDING""LIMIT_CREATION_APPROVAL_COMPLETE""LIMIT_DELETION_APPROVAL_PENDING""LIMIT_DELETION_APPROVAL_COMPLETE"
Example:"PENDING"
activebooleanrequired

Whether the limit is active

Example:true
blockchainstring(v2Blockchain)

The blockchain associated with this policy

Enum:"AVALANCHE""ETHEREUM""XRP_LEDGER""POLYGON""BNBCHAIN""BASE""HEDERA""ARBITRUM""ONE_MONEY""SOLANA"
Example:"ETHEREUM"
Response
{ "id": "ce4918bf-a199-4ce2-85a3-d0d296855384", "createdBy": "ce4918bf-a199-4ce2-85a3-d0d296855384", "walletId": "ce4918bf-a199-4ce2-85a3-d0d296855384", "vaultId": "ce4918bf-a199-4ce2-85a3-d0d296855384", "limitQty": "200.00", "duration": "200s", "limitType": "PER_TX", "createdAt": "2022-03-29T10:22:22.420Z", "updatedAt": "2022-03-29T10:22:22.420Z", "asset": { "id": "5:0xbehbehfb:USDC", "standard": "ERC20", "symbol": "LINK", "name": "Chainlink", "blockchain": "AVALANCHE", "decimals": 18, "vetted": true, "enabled": true, "contract": "0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846e", "createdAt": "2022-03-29T10:22:22.420Z", "updatedAt": "2022-03-29T10:22:22.420Z", "organizationId": "string", "coingeckoId": "ethereum", "source": "ASSET_SOURCE_COINGECKO", "sourceMetadata": { … }, "lastSyncedAt": "2024-08-08T10:22:22.420Z", "syncVersion": 1, "contractAddressChecksummed": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "iconUrl": "https://static.palisade.co/registry/assets/coingecko/production/usd-coin.png", "displaySymbol": "weETH" }, "matchers": [ { … } ], "status": "PENDING", "active": true, "blockchain": "ETHEREUM" }