Tweed contracts API

The contracts API from Tweed — 5 operation(s) for contracts.

Operations 5

GET /v1/contracts/{contractId} Get contract by ID #
GET /v1/contracts Get all contracts #
POST /v1/contracts/add Add contract #
POST /v1/contracts/add-contract-function Add contract function #
DELETE /v1/contracts/contract/{contractId} Delete contract #

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/tweed-contracts-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

tweed-contracts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tweed assets Contracts API
  description: ''
  version: '1.0'
  contact: {}
servers: []
tags:
- name: contracts
paths:
  /v1/contracts/{contractId}:
    get:
      operationId: getContractById
      summary: Get contract by ID
      parameters:
      - name: contractId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
      tags:
      - contracts
      security:
      - bearer: []
  /v1/contracts:
    get:
      operationId: getAllContracts
      summary: Get all contracts
      parameters: []
      responses:
        '200':
          description: ''
      tags:
      - contracts
      security:
      - bearer: []
  /v1/contracts/add:
    post:
      operationId: addContract
      summary: Add contract
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddContractDto'
      responses:
        '201':
          description: ''
      tags:
      - contracts
      security:
      - bearer: []
  /v1/contracts/add-contract-function:
    post:
      operationId: addContractFunction
      summary: Add contract function
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddContractFunctionDto'
      responses:
        '201':
          description: ''
      tags:
      - contracts
      security:
      - bearer: []
  /v1/contracts/contract/{contractId}:
    delete:
      operationId: deleteContract
      summary: Delete contract
      parameters:
      - name: contractId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
      tags:
      - contracts
      security:
      - bearer: []
components:
  schemas:
    AddContractFunctionDto:
      type: object
      properties:
        contractId:
          type: string
        functionSignature:
          type: string
        fixedFunctionParams:
          type: object
          additionalProperties:
            type: string
        abiVersion:
          type: string
      required:
      - contractId
      - functionSignature
      - fixedFunctionParams
    AddContractDto:
      type: object
      properties:
        address:
          type: string
        blockchainId:
          type: string
        abi:
          type: string
      required:
      - address
      - blockchainId
      - abi
  securitySchemes:
    bearer:
      scheme: Bearer
      bearerFormat: Bearer
      description: 'Please enter token in following format: Bearer JWT'
      type: http
x-amazon-apigateway-gateway-responses:
  DEFAULT_4XX:
    statusCode: 403
    responseParameters:
      gatewayresponse.header.Access-Control-Allow-Origin: '''*'''
      gatewayresponse.header.Access-Control-Allow-Headers: '''Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'''
      gatewayresponse.header.Access-Control-Allow-Methods: '''GET,OPTIONS,POST'''
    responseTemplates:
      application/json: '{"message":$context.error.messageString}'
  DEFAULT_5XX:
    statusCode: 500
    responseParameters:
      gatewayresponse.header.Access-Control-Allow-Origin: '''*'''
      gatewayresponse.header.Access-Control-Allow-Headers: '''Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'''
      gatewayresponse.header.Access-Control-Allow-Methods: '''GET,OPTIONS,POST'''
    responseTemplates:
      application/json: '{"message":$context.error.messageString}'