For the complete documentation index, see llms.txt. This page is also available as Markdown.

Deploy

post

Deploys a contract using the provided account name and deployment input.

Authorizations
AuthorizationstringRequired
Path parameters
accountNamestringRequired
  • The name of the account to deploy the contract to.
Header parameters
AuthorizationstringRequired
  • The authorization token from the request header.
Body
  • The deployment input data.
chain_idstringOptional

The chain ID.

abistringRequired

The ABI (Application Binary Interface) of the contract.

bytecodestringRequired

The bytecode of the contract.

constructor_argsstringOptional

Optional constructor arguments for the contract.

Responses
200

A promise that resolves to a TransactionAPIResponse indicating the success or failure of the deployment.

application/json

Interface representing the response from the Transaction API. Extends the BaseAPIResponse interface.

successbooleanRequired

The success status of the operation.

messagestringRequired

The message associated with the operation.

addressstringOptional

The address associated with the operation.

transaction_hashanyOptional

The hash of the transaction.

signedTxanyOptional

The signed transaction data.

transactionanyOptional

Additional transaction information.

functionstringOptional

The function name associated with the transaction.

post/accounts/{accountName}/deploy
200

A promise that resolves to a TransactionAPIResponse indicating the success or failure of the deployment.