ISC-20 Indexer

Introducing ISC-20 in the Injscriptions Protocol and Its Indexer Parsing Rules

What is ISC-20?

The ISC-20 specification, a pivotal component within the broader Injective Chain architecture, strategically incorporates the Injscriptions protocol. Specifically designed for the Injective Chain, ISC-20 introduces a meticulous process known as "Proof by Burning" during the deployment and casting phases of each inscription. This process mandates the commitment of the native INJ token, thereby not only amplifying deployment and casting costs but also expediting the depletion of INJ tokens. The intentional integration of the Proof by Burning mechanism manifests a discernible positive impact on ecological deflation dynamics.

Proof by Burning Mechanism:

The Proof by Burning mechanism not only amplifies the deployment and casting costs associated with inscriptions but also expedites the depletion of INJ tokens. This strategic integration is conceived to fortify ecological deflation dynamics, ensuring a judicious balance between cost-effectiveness and the preservation of a robust security posture, potentially surpassing conventional smart contract standards.

Indexer

Inscription Example

Deploy:

{"p":"isc-20","op":"deploy","tick":"injb","max":"21000000","lim":"1000","burn":"0.1"}

Mint:

{"p":"isc-20","op":"mint","tick":"injb","amt":"1000"}

Transfer:

{"p":"isc-20","op":"transfer","tick":"injb","to":[{"recv":"inj1tqfz777uyv5wpf60nnqtxyr5q0fgwtazyk67e6","amt":"50"},{"recv":"inj1y9vkk3ga59gq96amj9np7l67nuhnwg6rv4a06j","amt":"50"}]}

Rules

  • The content of inscriptions is filled in the memo field of the transaction.

  • The "Deploy" "Mint" "Transfer" operation must be a transaction with the Message Type set to "MsgSend".

  • The destination address for inscriptions transactions can be either a black hole address or a third-party platform address (usually the contract address).

  • The first deployment of a ticker is the only one that has claim to the ticker.

  • Inscription content is not case-sensitive, and spaces are ignored.

  • Maximum supply cannot exceed uint64_max.

  • The first mint to exceed the maximum supply will receive the fraction that is valid. (ex. 21,000,000 maximum supply, 20,999,242 circulating supply, and 1000 mint inscription = 758 balance state applied)

  • Inscriptions content is described in JSON format, encoded in UTF-8, and populated into the memo field of the transaction.

Black hole address

black hole address: inj1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqe2hm49

//convert.ts
import { getInjectiveAddress, getEthereumAddress} from "@injectivelabs/sdk-ts";
import { ZERO_ADDRESS } from "@injectivelabs/utils";

main().catch(console.error);
async function main(): Promise<void> {
  //ethereum black hole address: 0x0000000000000000000000000000000000000000
  //injective black hole address: inj1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqe2hm49
  let inj_black_hole_address = getInjectiveAddress(ZERO_ADDRESS);
  console.log(`injective black hole address: `, inj_black_hole_address);
  

  //covert injective address to ethereum address
  let eth_black_hole_address =  getEthereumAddress(inj_black_hole_address)
  console.log(`ethereum black hole address: `, eth_black_hole_address);
}
//ts-node convert.ts

Last updated