Deploy Contract

Deploys a new KIP-37 contract with the given parameters.
To see how to deploy a KIP-37 contract, please refer to KIP-37 Tutorial.

Options

With options you can set the transaction fee payment method. You can find more details in Fee Payer Options.

Request
Security:
header Parameters
x-chain-id
required
string

Kaia Network Chain ID (1001 or 8217)

Request Body schema: application/json
alias
required
string

The alias of the contract. When using KIP-37 API, you can use the contract alias in place of the address. The alias must only consist of lowercase letters, numbers and hyphens, and the first letter is restricted to a lowercase letter.

uri
required
string

The URI that stores the metadata of the contract.

symbol
string

The contract symbol. It usually consists of 3-4 uppercase letters. Empty string is set if nothing entered.

name
string

The contract name. It can contain lowercase and uppercase letters, numbers and hyphens. Empty string is set if nothing entered.

owner
string

The address available to own the contract. The account creating this contract can be an owner if nothing is entered.

object (Kip37FeePayerOptions)
Responses
200

Your request was successful.

400

The request is not valid.

401

The credential you provided is invalid.

409

There was a conflict with the current state of the server.

post/v2/contract
Request samples
application/json
{
  • "alias": "my-first-kip37",
  • "owner": "0xa809284C83b901eD106Aba4Ccda14628Af128e14",
  • "options": {
    }
}
Response samples
application/json

Your request was successful.

{
  • "status": "Submitted",
  • "transactionHash": "0x0a4f4f97d8a5904721514d60abd3f9ad7938862e415a6c043553a94ab68a5edb",
  • "owner": "0xa809284C83b901eD106Aba4Ccda14628Af128e14"
}