MolTrust Credits API

The Credits API from MolTrust — 8 operation(s) for credits.

Operations 8

GET /credits/pricing Credits Pricing #
GET /credits/balance/{did} Credits Balance #
POST /credits/transfer Credits Transfer #
GET /credits/transactions/{did} Credits Transactions #
POST /credits/deposit Credits Deposit #
GET /credits/deposits/{did} Credits Deposit History #
GET /credits/solvency/{did} Credits Solvency V0 #
GET /credits/deposit-info Credits Deposit Info #

Documentation

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/moltrust-ch:moltrust-ch-credits-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

moltrust-ch-credits-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MolTrust Credits API
  version: '2.5'
tags:
- name: Credits
paths:
  /credits/pricing:
    get:
      summary: Credits Pricing
      operationId: credits_pricing_credits_pricing_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Credits
  /credits/balance/{did}:
    get:
      summary: Credits Balance
      operationId: credits_balance_credits_balance__did__get
      parameters:
      - name: did
        in: path
        required: true
        schema:
          type: string
          maxLength: 128
          title: Did
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Credits
  /credits/transfer:
    post:
      summary: Credits Transfer
      operationId: credits_transfer_credits_transfer_post
      parameters:
      - name: X-API-Key
        in: header
        required: true
        schema:
          type: string
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/[REDACTED]'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Credits
  /credits/transactions/{did}:
    get:
      summary: Credits Transactions
      operationId: credits_transactions_credits_transactions__did__get
      parameters:
      - name: did
        in: path
        required: true
        schema:
          type: string
          maxLength: 128
          title: Did
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 200
          minimum: 1
          default: 50
          title: Limit
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
          title: Offset
      - name: X-API-Key
        in: header
        required: true
        schema:
          type: string
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Credits
  /credits/deposit:
    post:
      summary: Credits Deposit
      description: Claim credits by submitting a USDC transaction hash from Base.
      operationId: credits_deposit_credits_deposit_post
      parameters:
      - name: X-API-Key
        in: header
        required: true
        schema:
          type: string
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DepositRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Credits
  /credits/deposits/{did}:
    get:
      summary: Credits Deposit History
      description: Get USDC deposit history for an agent.
      operationId: credits_deposit_history_credits_deposits__did__get
      parameters:
      - name: did
        in: path
        required: true
        schema:
          type: string
          maxLength: 128
          title: Did
      - name: X-API-Key
        in: header
        required: true
        schema:
          type: string
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Credits
  /credits/solvency/{did}:
    get:
      summary: Credits Solvency V0
      description: 'Public, recomputable on-chain USDC solvency (solvency_usdc_v0).


        Read-only and UNAUTHENTICATED by design: a third party must be able to

        fetch the inputs and reproduce the value independently from a Base RPC.

        Spec: docs/solvency-usdc-v0.md (v0.1.0). Path (C) only — reads recorded

        on-chain USDC deposits; does NOT touch wallet_score / shadow_score.'
      operationId: credits_solvency_v0_credits_solvency__did__get
      parameters:
      - name: did
        in: path
        required: true
        schema:
          type: string
          maxLength: 128
          title: Did
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Credits
  /credits/deposit-info:
    get:
      summary: Credits Deposit Info
      description: 'Public endpoint: how to deposit USDC for credits.'
      operationId: credits_deposit_info_credits_deposit_info_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      tags:
      - Credits
components:
  schemas:
    DepositRequest:
      properties:
        tx_hash:
          type: string
          maxLength: 70
          minLength: 64
          title: Tx Hash
        did:
          type: string
          maxLength: 128
          title: Did
      type: object
      required:
      - tx_hash
      - did
      title: DepositRequest
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError