KOISAN INTERNATIONAL COIN (KIC)
  • 📜KOISAN INTERNATIONAL COIN (KIC) WHITEPAPER
  • ⛓️KOISAN CHAIN
    • About Koisan Chain
    • Wallet
    • Consensus
    • Meta Transaction
    • Genesis File
    • Node
      • Compile and Run
      • Deployment
      • On-Chain Interaction
      • Contract
      • Private Chain Construction
      • Graph Node
      • Mainnet
      • DApp-Governance
      • Txpool
    • DApp Development
      • Account Management
      • KIC20
      • NFT
      • Remix
      • Truffle
  • 👥KOISAN TEAM
  • 📡KIC ECOSYSTEM
    • 🦈KOISAN WORLD NFT GAME
    • 🎮Gameplay
  • 🌐KOISAN SOCIAL MEDIA
Powered by GitBook
On this page
  1. KOISAN CHAIN

Meta Transaction

A meta-transaction is essentially an operation that fulfils a fee payment in proxy. Address1 gives the transaction to be sent to Address2. And Address2 signs the information related to the fee deducti

Built Meta Transaction

  • Obtain the original rawTransaction information.

  • Parse raw transaction to get fields like nonce, gasprice, gaslimit, from address, to address, value, data, etc.

  • Take the above fields, as well as the fee discount percentage and other fields, and encode them in RLP format as follows for example.

List result = new ArrayList();

result.add(RlpString.create(nonce));

result.add(RlpString.create(gasPrice));

result.add(RlpString.create(gasLimit));

result.add(RlpString.create(receiveAddress));

result.add(RlpString.create(value));

result.add(RlpString.create(data));

result.add(RlpString.create(sendAddress));

result.add(RlpString.create(feePercent));

result.add(RlpString.create(blockNumber));

result.add(RlpString.create(chainId));

RlpList rlpList = new RlpList(result);

this.rlpEncodeData = RlpEncoder.encode(rlpList);

  • Sign the above data by the fee proxy address.

  • Replace the data filed in the original transaction with the signed data and re-encode it as rawTransaction.

  • Broadcast rawTransaction to blockchain;

PreviousConsensusNextGenesis File

Last updated 3 years ago

⛓️