Get template usage
Changed onReturns the invocation counter and last-used timestamp for a Numscript template. Values are materialised asynchronously by the usagebuilder subsystem from the FSM audit chain and may lag the live FSM while the worker drains pending batches. A never-invoked template returns a zero-valued response (not 404), so clients handle "never used" uniformly.
Request
- Base URLhttp://localhost:9000
- URLhttp://localhost:9000/v3/{ledgerName}/numscripts/{name}/usage
- Auth
- HTTP bearer
- or none
Path parameters
Name of the ledger
Name of the numscript template, URL-encoded as one path segment. Decoded exactly once.
Headers
Read consistency. linearizable (the default) runs a Raft ReadIndex barrier and waits for the receiving node to apply up to it. stale serves the read from the receiving node's own store, with no barrier and no forwarding to the leader, so the answer may lag the leader. Matching ignores case and surrounding whitespace. An unknown value, or a repeated or comma-joined header, returns 400 INVALID_REQUEST on every /v3 route, writes included; a valid value has no effect on writes. The gRPC equivalent is the x-consistency request metadata.
Response
Template usage retrieved successfully
Changes
- info
api operation id
getNumscriptUsageremoved and replaced withv3GetNumscriptUsage
- info
- info
the endpoint scheme security
BearerAuthwas added to the API - info
added the non-success response with the status
- info
added the non-success response with the status
- info