validation
Constants
<dl> <dt><a href="#ethAddressSchema">ethAddressSchema</a></dt> <dd><p>Ethereum address schema</p> </dd> <dt><a href="#chainSchema">chainSchema</a></dt> <dd><p>Chain ID or name schema</p> </dd> <dt><a href="#paginationSchema">paginationSchema</a></dt> <dd><p>Pagination schema</p> </dd> <dt><a href="#createWalletSchema">createWalletSchema</a></dt> <dd><p>POST /wallet/create</p> </dd> <dt><a href="#importWalletSchema">importWalletSchema</a></dt> <dd><p>POST /wallet/import</p> </dd> <dt><a href="#estimateGasSchema">estimateGasSchema</a></dt> <dd><p>POST /wallet/estimate-gas</p> </dd> <dt><a href="#sendTransactionSchema">sendTransactionSchema</a></dt> <dd><p>POST /wallet/:address/send</p> </dd> <dt><a href="#sweepWalletSchema">sweepWalletSchema</a></dt> <dd><p>POST /wallet/:address/sweep</p> </dd> <dt><a href="#setPolicySchema">setPolicySchema</a></dt> <dd><p>PUT /wallet/policy/:address</p> </dd> <dt><a href="#evaluatePolicySchema">evaluatePolicySchema</a></dt> <dd><p>POST /wallet/policy/:address/evaluate</p> </dd> <dt><a href="#createIdentitySchema">createIdentitySchema</a></dt> <dd><p>POST /identity/create</p> </dd> <dt><a href="#agentPaySchema">agentPaySchema</a></dt> <dd><p>POST /identity/:agentId/pay</p> </dd> <dt><a href="#updateCapabilitySchema">updateCapabilitySchema</a></dt> <dd><p>PATCH /identity/:agentId/capability</p> </dd> <dt><a href="#createApiKeySchema">createApiKeySchema</a></dt> <dd><p>POST /api-keys</p> </dd> <dt><a href="#apiKeyPrefixParamSchema">apiKeyPrefixParamSchema</a></dt> <dd><p>DELETE /api-keys/:prefix</p> </dd> <dt><a href="#registerEnsSchema">registerEnsSchema</a></dt> <dd><p>POST /ens/register</p> </dd> <dt><a href="#resolveEnsSchema">resolveEnsSchema</a></dt> <dd><p>POST /ens/resolve</p> </dd> <dt><a href="#agentTypes">agentTypes</a></dt> <dd><p>Supported agent types - for ALL AI agents!</p> </dd> <dt><a href="#agentRegistrationSchema">agentRegistrationSchema</a></dt> <dd><p>POST /agents/register</p> </dd> <dt><a href="#agentPaymentSchema">agentPaymentSchema</a></dt> <dd><p>POST /agents/pay</p> </dd> <dt><a href="#serviceListingSchema">serviceListingSchema</a></dt> <dd><p>POST /agents/:agentName/services</p> </dd> </dl>
Functions
<dl> <dt><a href="#validate">validate(schema, property)</a> ⇒ <code>function</code></dt> <dd><p>Create validation middleware for a given Zod schema</p> </dd> <dt><a href="#validateAddress">validateAddress()</a></dt> <dd><p>Validate Ethereum address in route params</p> </dd> <dt><a href="#validateAgentId">validateAgentId()</a></dt> <dd><p>Validate agent ID format</p> </dd> </dl>
<a name="ethAddressSchema"></a>
ethAddressSchema
Ethereum address schema
Kind: global constant
<a name="chainSchema"></a>
chainSchema
Chain ID or name schema
Kind: global constant
<a name="paginationSchema"></a>
paginationSchema
Pagination schema
Kind: global constant
<a name="createWalletSchema"></a>
createWalletSchema
POST /wallet/create
Kind: global constant
<a name="importWalletSchema"></a>
importWalletSchema
POST /wallet/import
Kind: global constant
<a name="estimateGasSchema"></a>
estimateGasSchema
POST /wallet/estimate-gas
Kind: global constant
<a name="sendTransactionSchema"></a>
sendTransactionSchema
POST /wallet/:address/send
Kind: global constant
<a name="sweepWalletSchema"></a>
sweepWalletSchema
POST /wallet/:address/sweep
Kind: global constant
<a name="setPolicySchema"></a>
setPolicySchema
PUT /wallet/policy/:address
Kind: global constant
<a name="evaluatePolicySchema"></a>
evaluatePolicySchema
POST /wallet/policy/:address/evaluate
Kind: global constant
<a name="createIdentitySchema"></a>
createIdentitySchema
POST /identity/create
Kind: global constant
<a name="agentPaySchema"></a>
agentPaySchema
POST /identity/:agentId/pay
Kind: global constant
<a name="updateCapabilitySchema"></a>
updateCapabilitySchema
PATCH /identity/:agentId/capability
Kind: global constant
<a name="createApiKeySchema"></a>
createApiKeySchema
POST /api-keys
Kind: global constant
<a name="apiKeyPrefixParamSchema"></a>
apiKeyPrefixParamSchema
DELETE /api-keys/:prefix
Kind: global constant
<a name="registerEnsSchema"></a>
registerEnsSchema
POST /ens/register
Kind: global constant
<a name="resolveEnsSchema"></a>
resolveEnsSchema
POST /ens/resolve
Kind: global constant
<a name="agentTypes"></a>
agentTypes
Supported agent types - for ALL AI agents!
Kind: global constant
<a name="agentRegistrationSchema"></a>
agentRegistrationSchema
POST /agents/register
Kind: global constant
<a name="agentPaymentSchema"></a>
agentPaymentSchema
POST /agents/pay
Kind: global constant
<a name="serviceListingSchema"></a>
serviceListingSchema
POST /agents/:agentName/services
Kind: global constant
<a name="validate"></a>
validate(schema, property) ⇒ <code>function</code>
Create validation middleware for a given Zod schema
Kind: global function
Returns: <code>function</code> - Express middleware function
| Param | Type | Description |
|---|---|---|
| schema | <code>z.ZodSchema</code> | The Zod schema to validate against |
| property | <code>string</code> | Which property to validate ('body', 'query', 'params') |
<a name="validateAddress"></a>
validateAddress()
Validate Ethereum address in route params
Kind: global function
<a name="validateAgentId"></a>
validateAgentId()
Validate agent ID format
Kind: global function