Smart Contracts
Turing-Complete Smart Contract Support
Turing-complete smart contracts open the door to numerous use cases in video streaming and beyond, from token investments in streamers, to automated splits of PTX rewards between platform/streamers/users, to non-fungible tokens (NFTs) representing top content creators. Since the Pando Virtual Machine is compatible with Ethereum Virtual Machine (EVM), porting over existing Ethereum-based contracts is simple and thousands of smart contract developers can easily jump to building on Pando. Between the Pando Labs team and Pando community, many projects are already in the works including decentralized exchanges (DEXs), staking pools, and more.
Since the Pando Virtual Machine is compatible with EVM, a developer can compile the Solidity contract source code using his preferred compiler toolchain (Remix, Truffle, or solc) into bytecode and then deploy to the Pando Blockchain.
A user can deploy and interact with the smart contract either manually through the Pando Web Wallet or programmatically via the Pando Blockchain SDK. Also note that on the Pando Blockchain, PTX takes the place of ETH in all contracts. Just as you need ETH to deploy or interact with smart contracts on Ethereum, you need PTX to do so on Pando blockchain. All PTX used to deploy or interact with smart contracts is burned.
Call Smart Contract
This API simulates the smart contract execution locally without submitting the smart contract transaction to the blockchain. It is useful to evaluate the execution result, calculate the gas cost, etc.
RPC Method: pando.CallSmartContract
Query Parameters
sctx_bytes: the signed transaction bytes
Returns
vm_return: the return of the virtual machine
contract_address: the address of the corresponding smart contract
gas_used: amount of gas used for the smart contract execution
vm_error: error returned by the virtual machine if any
Smart Contract deployment Fees
Smart contract fees will be 6 PTX per contract deployment and its mandatory to have 400 PTX in your wallet to deploy smart contract from your web wallet.
Last updated