/api/v1/check-vault-limitCheck an amount against a vault's limit
Tests whether a proposed amount fits within a vault's spending limit, returning true when it does and changing nothing either way.
MANAGE_WORKSPACEUse this to tell someone that a movement will be refused before they build it.
The response is a single boolean: Success is true when the amount fits within
the vault's policy and false when it does not. Note the parameter name:
transaction_limit carries the amount you want to test, not a new limit, and
this call never writes anything. To change the vault's limit, use
POST /api/v1/update-vault; to read it, use
GET /api/v1/get-vault-limits.
Vault policies are enforced before the signing stage, which is why the check is worth making: a movement that exceeds the limit is blocked and never reaches signers, so no amount of approval will push it through. See Vault policies.
This is a pre-flight check against the state of the vault at the moment you
ask. Nothing is held back or set aside for you, so another movement approved in
the meantime, or a cycle reset, can change the answer. Treat true as
"this would be accepted now", not as a guarantee that a later proposal will
pass.
vault_idstringrequiredworkspace_idnumberrequiredtransaction_limitstringrequired