KUB Docs
  • Introduction to KUB
  • Connect to KUB
  • KUB PoS
    • Increase block gas limit to 90M
    • Update GasPrice Instruction
    • Incident from chaophaya hardfork
    • Overview
    • Considerations
    • Validator Node
      • Node Requirements
      • Run Validator Node
      • Validator Staking
      • StakeManager Contract
      • ValidatorShare Contract
      • Slashing
    • Run Full Node
    • Run Archive Node
    • Chaindata Snapshot
    • Migration PoSA to PoS
    • Delegator
      • How to delegate
      • How to claim reward
      • How to unstake
  • Developer Center
    • ✨Getting Started
    • 🏆Project Tiers
    • 👨‍💻Connect Bitkub NEXT to register as a new user
    • ✔️Verify your identity via Bitkub NEXT (KYC or KYB)
    • 💰Subscribe to the KUB Developer Package
    • 🗳️Submit your project
      • 📗Create submit project
      • 📘Manage your project
        • Submit project
        • Create a new project version
        • Status of project version
      • 📙Manage project information
  • KUB SDK
    • NEXT SDK
      • NEXT SDK Code Cookbook
      • KUB SDK Compatible Smart Contract
        • Example Smart Contract for Testing
        • Example KUB SDK Compatible KAP20 Smart Contract
        • Example KUB SDK Compatible KAP721 Smart Contract
  • KUB Playground
    • Quick Start Guide on KUB Playground
  • KUB Layer 2
  • KUB Scan
  • RPC Service
    • JSON-RPC Endpoint
  • IPFS Service
    • IPFS Guideline
  • FAQ
  • Glossary
  • Reference and Service
    • KUB Whitepaper Version 3.3
    • Technical Paper Version 3.2
    • KUB Explorer
    • KUB Faucet
    • KUB Oracle
    • KUB Bridge
    • KKUB OTP
Powered by GitBook
On this page
  • KAP20 for SDK
  • KAP721 for SDK

Was this helpful?

  1. Guide for implementing a smart contract

How to implement and deploy Smart Contracts with SDK system

Last updated 9 months ago

Was this helpful?

KAP20 for SDK

Within the KAP20SDK contract, the functions approveBySDK and transferFromBySDK have been added. For the purpose of functioning as a User, i.e., the client-side User can approve or transferFrom with the SDK without the need to sign the message themselves. Send Transaction to Bitkub Chain instead as User.

For Example

Constructor

_name

Name of your token

_symbol

Symbol of your token

_decimals

Decimal of your token

_kyc

0x0B80357691c27c0c9Ba25123F832190C0b86aCA1

_committee

0x5bcDFb971d6622eEf0bFcAf7EcB6120a822B1Cd3

_transferRouter

0xF2B8821FA1e5cE47A99bD67c9f9E1724e48FD680

_executorEnv

0x9D9815a91d7E1Cf47dd48838f21dc373F51DdD17

_acceptedKycLevel

4

_envId

ENV ID of your token

KAP721 for SDK

Within the KAP721SDK contract, the functions adminApproveBySDK, approveForAllBySDK, and transferFromBySDK have been added. For the purpose of functioning as a User, i.e., the client-side User can approve or transferFrom with the SDK without the need to sign the message themselves. Send Transaction to Bitkub Chain instead as User.

For Example Constructor

_name

Name of your token

_symbol

Symbol of your token

_baseURI

baseURI of your token

_kyc

0x0B80357691c27c0c9Ba25123F832190C0b86aCA1

_committee

0x5bcDFb971d6622eEf0bFcAf7EcB6120a822B1Cd3

_transferRouter

0x217ee59291692B00Eb8377a293E98811FB18b0Ca

_executorEnv

0x9D9815a91d7E1Cf47dd48838f21dc373F51DdD17

_acceptedKycLevel

4

_envId

ENV ID of your token

link
link