Import Contract

Imports a KIP-37 contract deployed without KAS to manage and use it. But in order to execute the functions such as those for minting, pausing, resuming tokens, you need a KAS account. To know more about the account and more, please refer to KIP-37 Standard.

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

Contract alias. KIP-37 API supports the use of alias in place of the contract address.

uri
required
string

The URI for storing the contract metadata.

address
required
string

Contract address

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/import
Request samples
application/json
{}
Response samples
application/json

Your request was successful.

{
  • "address": "0xcbcbe8297801600bf8e0530baa2fdd6358547ebe",
  • "alias": "my-first-kip37",
  • "status": "deployed",
  • "options": {
    }
}