Contracts

Overview

The Contracts API provides information about the deployed addresses of core Ethos smart contracts on the blockchain.

Endpoints

Get Smart Contract Addresses

GET /api/v1/contracts

Description: Retrieves addresses of Ethos smart contracts deployed on the blockchain.

Authentication Required: No

Parameters

Query Parameters

Name
Type
Required
Description

targetContracts

string

Yes

Must be set to "all" to retrieve all contracts

Responses

Success Response

Code: 200 OK

Property
Type
Description

ok

boolean

Success status

data

array

Array of contract objects

data[].name

string

Name of the smart contract

data[].configAddress

string

Configured Ethereum address of the contract

data[].managedAddress

string

Address managed by the contract address manager

data[].isProxy

boolean

Whether the contract uses a proxy pattern

Error Response

Code: 400 Bad Request

Example

Request

Notes

  • The API currently only supports retrieving all contracts with targetContracts=all.

  • The implementation suggests support for specifying an array of specific contracts, but this doesn't appear to work in the current version.

  • The returned contracts include core Ethos functionality such as Profile, Attestation, Review, Vote, and Vouch contracts.

  • Use these addresses to directly interact with Ethos smart contracts via Web3 libraries or blockchain explorers.

Last updated