Git Product home page Git Product logo

betdice_contract's Introduction

betdice_contract

#EOSBETDI骰子游戏,合约代码

author:区块链青年qq_776355102

合约授权 cleos -u http://api-kylin.eoshenzhen.io:8890 set account permission baidudice222 active '{"threshold" : 1, "keys" : [{"key":"EOS5ihbMJSJ7GC3zxbJaKU1h571UEUxn81FLoJdPX7YaH5T2hVrdu","weight":1}], "accounts" : [{"permission":{"actor":"baidudice222","permission":"eosio.code"},"weight":1}]}' owner -p baidudice222@owner

获取账户信息:

cleos -u http://api-kylin.eoshenzhen.io:8890 get account baidudice222

创建账户

cleos -u http://api-kylin.eoshenzhen.io:8890 system newaccount -x 1000 --stake-net "0.1 EOS" --stake-cpu "0.1 EOS" --buy-ram-kbytes 8 baidudice222 baidudice333 EOS5ihbMJSJ7GC3zxbJaKU1h571UEUxn81FLoJdPX7YaH5T2hVrdu EOS5ihbMJSJ7GC3zxbJaKU1h571UEUxn81FLoJdPX7YaH5T2hVrdu

购买RAM

cleos -u http://api-kylin.eoshenzhen.io:8890 system buyram baidudice333 baidudice333 "30.0000 EOS"

抵押net和cpu资源

cleos -u http://api-kylin.eoshenzhen.io:8890 system delegatebw baidudice333 baidudice333 "10.0000 EOS" "10.0000 EOS"

编译源码

eosio-cpp -o EOSBetDice.wasm EOSBetDice.cpp --abigen

betdice_contract's People

Contributors

qq776355102 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.