Git Product home page Git Product logo

erc721contractformobile's Introduction

Compile solidity to abi and bin

Install solc

$ brew update
$ brew upgrade
$ brew tap ethereum/ethereum
$ brew install solidity

Generate abi from sol to /build folder

$ solc --abi --bin contracts/ERC721PresetMinterPauserAutoId.sol -o build --overwrite

Truffle (Local Blockchain)

$ npm i
$ npm i -g truffle
$ truffle compile contracts/ERC721PresetMinterPauserAutoId.sol
$ truffle develop
truffle(develop)> migrate

2_deploy.js
===========

   Deploying 'ERC721PresetMinterPauserAutoId'
   ------------------------------------------
   > transaction hash:    0xe293a6069916a2020b57d8ab74995bcc7489f42a1e9047f06725140918971f34
   > Blocks: 0            Seconds: 0
   > contract address:    0x24afDE22C4b65a8C1e14a80E34f56A4499ef1aEd
   > block number:        1
   > block timestamp:     1657252744
   > account:             0x14206Eefd385F04E53Fb75511239c46830ad1A85
   > balance:             99.9855433225
   > gas used:            4283460 (0x415c44)
   > gas price:           3.375 gwei
   > value sent:          0 ETH
   > total cost:          0.0144566775 ETH

   > Saving artifacts
   -------------------------------------
   > Total cost:        0.0144566775 ETH

truffle(rinkeby)> nft = await ERC721PresetMinterPauserAutoId.deployed()
undefined

truffle(develop)> await nft.mint("0x0445c33bdce670d57189158b88c0034b579f37ce")
{ tx:
   '0xd301a60dbb8ac187687f6639f200d4e6f2cfa065923092b3940330e35a26421d',
  receipt:
  ....

Unity

Install Nethereum.Generator.Console

dotnet tool install -g Nethereum.Generator.Console

Make sure to add the executable to $PATH

$ Nethereum.Generator.Console generate from-abi -abi ./build/ERC721PresetMinterPauserAutoId.abi -o ./unity -ns Sample.Ethereum

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.