đ¨âđģ/smart-contract (alpha)
Generate solidity code from a prompt.
POST
https://api.brianknows.org/api/v0/agent/smart-contract
Allows you to send a prompt to Brian and generate a Solidity Smart Contract. The code is encapsulated in a markdown code tag. You can also request the ABI and bytecode of the compiled smart contract in the same API call.
Headers
Name
Type
Description
x-brian-api-key*
String
Brian API key.
Content-Type*
application/json
Body content type.
Request Body
Name
Type
Description
prompt*
String
User input prompt.
compile
Boolean
If true, it compiles the contract and returns the ABI and bytecode
messages
array object[]
messages exchanged between the user and Brian (conversation history).
Requesting information
Response
Last updated