Examples

This section provides practical examples of how Blobscription can be utilized, specifically focusing on the BLRC-20 token operations. Each example demonstrates a different operation achievable within the Blobscription framework, showcasing the versatility and functionality of the platform. The examples include deploying a new token, minting tokens, and transferring tokens. Below, we detail each operation, highlighting the parameters used and their significance in the transaction.

Deploy

The deploy operation is used to create a new BLRC-20 token on the blockchain. This operation initializes the token with its fundamental properties.

{
  "p": "blrc-20",
  "op": "deploy",
  "tick": "blob",
  "max": 21000000,
  "lim": 1000
}
ParameterDescriptionExample
pThe protocol or token standard.blrc-20
opThe operation to be performed.deploy
tickThe ticker symbol of the token.blob
maxThe maximum supply of the token.21000000
limThe transaction limit or the gas limit for deployment.1000

This transaction initializes a new token with the symbol "blob", setting its maximum supply to 21 million units and the transaction gas limit to 1000.

Mint

The mint operation is used to generate new tokens, adding them to the total supply and allocating them to a designated account.

{
  "p": "blrc-20",
  "op": "mint",
  "tick": "blob",
  "amt": 1000
}
ParameterDescriptionExample
pThe protocol or token standard.blrc-20
opThe operation to be performed.mint
tickThe ticker symbol of the token being minted.blob
amtThe amount of the token to mint.1000

This mint operation creates 1000 new "blob" tokens, increasing the total supply and crediting them to the issuer’s account.

Transfer

The transfer operation is utilized to move tokens from one account to another. It's a fundamental function in token ecosystems, allowing for the circulation of tokens.

{
  "p": "blrc-20",
  "op": "transfer",
  "tick": "blob",
  "amt": 100
}
ParameterDescriptionExample
pThe protocol or token standard.blrc-20
opThe operation to be performed.transfer
tickThe ticker symbol of the token to be transferred.blob
amtThe amount of the token to transfer.100

In this example, the transfer operation moves 100 "blob" tokens from the sender's account to the recipient's account, enabling peer-to-peer transactions within the network.

These examples illustrate the basic functionalities provided by the Blobscription platform, demonstrating how users can interact with the blockchain's blob space to perform various token-related operations.