Deploy Contract

This Deploys contract using this method.

API Specification

Deploy Contract

POST http://localhost:8889/wallet/deployContract

Deploys the contract under the given instance.

Headers

NameTypeDescription

ChainId*

String

ChainId

Request Body

NameTypeDescription

byteCode*

String

Bytecode of the Contract

abi*

String

The Application Binary Interface (ABI) of the contract

params*

String

Additional parameters for the transaction

walletId*

String

The ID of the wallet

Take a look at how you might call this method using our official libraries, or via curl:

Here we need to compile a contract ( eg. via remix ide) which will give "bytecode" and "abi".

Here "abi" will be in json format which we need to convert to base64.

curl -X POST http://localhost:8889/wallet/deployContract \
-H "Content-Type: application/json" \
-H "ChainId: xxxx" \
-d '{
  "walletId": "xxxxxxxxxxx",
  "byteCode": "",
  "abi": "",
  "params": [],
  "chainId":"xxxx"
}'

Last updated