👨‍💻/Smart-contracts (alpha)

Generate solidity code from a prompt.

POST https://api.brianknows.org/api/v0/agent/smart-contracts

Allows you to send a prompt to Brian and generate a Solidity Smart Contract. The code is encapsulated in a markdown code tag.

Headers

NameTypeDescription

x-brian-api-key*

String

Brian API key.

Content-Type*

application/json

Body content type.

Request Body

NameTypeDescription

prompt*

String

User input prompt.

Requesting information

curl -XPOST "https://api.brianknows.org/api/v0/agent/smart-contracts" -H "Content-Type: application/json" -H "x-brian-api-key: API_KEY" -d '{"prompt": "give me the code of an ERC20 token called GMRD with suppy 1 M"}'
Response

{
  "result": "```solidity\nCODE_HERE```"
}

Last updated