Skip to content

Latest commit

 

History

History
executable file
·
32 lines (24 loc) · 1016 Bytes

README.md

File metadata and controls

executable file
·
32 lines (24 loc) · 1016 Bytes

Payprotocol Token Chaincode

Payprotocol Token (PCI)

API

method func [arg1, arg2, ... ] {trs1, trs2, ... }

  • method : query or invoke
  • func : function name
  • [arg] : mandatory argument
  • [arg] : optional argument
  • {trs} : mandatory transient
  • {trs} : optional transient

query burn [total_supply, genesis_account_balance, max_amount]

  • Get burnable amount
  • [total_supply] : current total supply
  • [genesis_account_balance] : current balance amount of the genesis account
  • [max_amount] : amount to burn, but the actual return value less or equal than it, (if max_amount <= 0, no limit)

query mint [total_supply, genesis_account_balance, max_amount]

  • Get mintable amount
  • [total_supply] : current total supply
  • [genesis_account_balance] : current balance amount of the genesis account
  • [max_amount] : amount to mint, but the actual return value less or equal than it, (if max_amount <= 0, no limit)

query token

  • Get initial meta data of the token