Public Endpoints
Public endpoints are accessible without authentication and provide general data related to AccessTime.
Dashboard
Last Deployments
GET
- /v1/dashboard/deployment/last/:chainId/:address
import { DashboardApi } from "@accesstimeio/accesstime-common";
const lastDeployments = await DashboardApi.lastDeployments(8453, "0xOwnerAddress");
// [
// {
// accessTimeId: string;
// id: Address;
// paused: boolean;
// }
// ]
Deployments (Paginated)
GET
- /v1/dashboard/deployment/list/:chainId/:address?page=&pageCursor=
import { DashboardApi } from "@accesstimeio/accesstime-common";
const listDeployments = await DashboardApi.listDeployments(8453, "0xOwnerAddress", 0); // page begins with 0, page cursor can obtainable from response
// {
// page: number;
// maxPage: number;
// deployments: [
// {
// accessTimeId: string;
// id: Address;
// paused: boolean;
// }
// ];
// pageCursor: string | null;
// }
Factory Rates
GET
- /v1/dashboard/deployment/:chainId/rates
import { DashboardApi } from "@accesstimeio/accesstime-common";
const factoryRates = await DashboardApi.rates(8453);
// [
// {
// id: Address;
// rate: string;
// }
// ]
Project by Id
GET
- /v1/dashboard/project/:chainId/:id
import { DashboardApi } from "@accesstimeio/accesstime-common";
const projectById = await DashboardApi.project(8453, 0);
// {
// id: Address;
// extraTimes: string[];
// removedExtraTimes: string[];
// nextOwner: Address;
// owner: Address;
// packages: string[];
// removedPackages: string[];
// paused: boolean;
// paymentMethods: Address[];
// prevOwner: Address;
// }
Portal
Featureds
GET
- /v1/portal/featureds
import { PortalApi } from "@accesstimeio/accesstime-common";
const featureds = await PortalApi.featureds();
// [
// {
// id: string;
// chainId: number;
// address: Address;
// avatarUrl: string | null;
// domainVerify: boolean;
// portalVerify: boolean;
// }
// ]
Explore
GET
- /v1/portal/explore/:chainId?page=&sort=&paymentMethods=&pageCursor=
import { PortalApi } from "@accesstimeio/accesstime-common";
const explore = await PortalApi.explore(8453);
// {
// countProjects: number;
// maxPage: number;
// projects: [
// {
// id: Address;
// avatarUrl: string | null;
// votePoint: number;
// voteParticipantCount: number;
// isFavorited: boolean; // if auth is not configurated, always false
// domainVerify: boolean;
// portalVerify: boolean;
// categories: number[];
// }
// ];
// pageCursor: string | null;
// }
Project by Id
GET
- /v1/portal/project/:chainId/:id
import { PortalApi } from "@accesstimeio/accesstime-common";
const projectById = await PortalApi.projectById(8453, 0);
// {
// avatarUrl: string | null;
// votePoint: number;
// voteParticipantCount: number;
// isFavorited: boolean; // if auth is not configurated, always false
// domainVerify: boolean;
// portalVerify: boolean;
// categories: number[];
// socials: PortalProjectSocial[];
// contentUrl: string | null;
// paymentMethods: Address[];
// packages: PortalProjectPackage[];
// }
Project Votes
GET
- /v1/portal/project/:chainId/:id/votes
import { PortalApi } from "@accesstimeio/accesstime-common";
const projectVotes = await PortalApi.projectVotes(8453, 0);
// {
// previousVotePoint: number;
// previousVoteParticipantCount: number;
// votePoint: number;
// voteParticipantCount: number;
// }
Check Link
GET
- /v1/portal/link/check/:hashedLink
import { PortalApi } from "@accesstimeio/accesstime-common";
const checkLink = await PortalApi.linkCheck("https://accesstime.io");
// {
// allowed: boolean;
// }