Deploy Contract

This Deploys contract using this method. The weightage for this API is 10

API Specification

Deploy Contract

POST https://api.krypcore.com/api/v0/wallet/deployContract

Deploys the contract under the given instance.

Headers

NameTypeDescription

Authorization*

String

Obtained User Auth Key

instanceId*

String

Instance ID

Request Body

NameTypeDescription

byteCode*

String

Bytecode of the Contract

abi*

String

Base64 of the abi

chainId*

String

Chain ID

serviceAPIKey*

String

Service Key

name

String

wallet name

mode

String

mode

{
    "Data": {
        "contractAddress": "xxxxxxx",
        "txHash": "xxxxxxxxxxxxxxxxx"
    },
    "Message": "Signed and executed txn successfully",
    "Status": "SUCCESS"
}

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

curl --location -g --request POST 'https://api.krypcore.com/api/v0/wallet/deployContract' \
--header 'Authorization: xxxxxxxxxxxx' \
--header 'Instanceid: xxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data '{
    "abi": "Base64 of the abi",
    "byteCode": "byte code of the contract",
    "chainId": 80001,
    "instanceId": "xxxxxxxxxxxx",
    "mode": "api",
    "name": "wallet2",
    "params": [
        {
            "type": "string",
            "value": "Test"
        },
        {
            "type": "string",
            "value": "Descp"
        }
    ],
    "serviceAPIKey": "xxxxxxxxxxxxxxxx"
}' 

Last updated