🔐
Trust Enterprises
  • Getting Started
  • Intro video course
    • Introduction of the Trust Enterprises project [2:16]
    • Deployment of your first Serverless client [6:29]
    • Using Postman with the Trust Enterprises API [6:33]
    • Installation of the Trust Enterprises Laravel package [7:51]
    • Basic interaction with your client with Laravel. [10:28]
  • Deployment
    • Vercel
    • Environment Variables
    • Github Actions
  • REST API
    • Overview
    • Inscriptions
      • Deploy an Inscription
      • Mint an Inscription
      • Burn an Inscription
      • Transfer an Inscription
    • NFT Ecosystem
      • Create an NFT Collection
      • Generate Metadata
      • Mint an NFT
      • Transfer an NFT
      • Claiming NFTs through Passes
    • Accounts
    • Tokens
      • Create a token
      • Bequesting a token
      • Token Holdings and Balance
    • Topics
      • Get topic info
      • Creating a new topic
      • Updating a topic
    • Consensus Messages
    • Balance
    • Status
    • Webhooks
  • The Laravel Client
    • Overview
    • Installation
    • Interacting with your client
    • Create a Marketplace
    • Manage your Inscription Flow
    • Checking account balances and sending tokens
  • Contributing
    • Local Development
      • Architecture Rationale
    • Contributing Guidelines
    • Changelog
  • Links
    • Github
    • Trust Enterprises
    • Postman Documentation
    • Hedera Network Status
    • Remote Software Development
Powered by GitBook
On this page

Was this helpful?

  1. REST API
  2. Topics

Creating a new topic

Create a topic that automatically has a admin key set, only allowing for the serverless client to update them. You can a topic completely private for writes and updates and sending messages.

Create new topic

POST https://hedera-serverless-consensus.vercel.app/api/consensus/topic/:id

This endpoint will create a new topic that can be used to send messages to for a consensus timestamp. As this is an authenticated endpoint, 401 errors will be shown on incorrect authentication keys.

Query Parameters

Name
Type
Description

memo

string

A memo that will be added to the topic, this can also be an escaped JSON string.

enable_private_submit_key

boolean

Make sure that consensus messages can only be sent from the account that created the topic.

Headers

Name
Type
Description

x-api-key

string

The API_SECRET_KEY that is set in the clients environment.

{
    "data": {
        "memo": "topic memo information",
        "topic": "0.0.16091"
    }
}
{
    "errors": [
        "\"enable_private_submit_key\" must be a boolean"
    ]
}

PreviousGet topic infoNextUpdating a topic

Last updated 4 years ago

Was this helpful?