Free Club Token , post your vex.account ID in comment we will sent 1000 Club token , to your account
how to get vex.account ? click here https://club.vexanium.com/post/5deefcfbc8ed4a62f67812d7
Log in to ask Vexanium questions publicly or anonymously.
Free Club Token , post your vex.account ID in comment we will sent 1000 Club token , to your account
how to get vex.account ? click here https://club.vexanium.com/post/5deefcfbc8ed4a62f67812d7
Smart contract atau Kontrak pintar sebenarnya adalah Kode yang tersimpan di blockchain pada blockchain Vexanium Kontrak disimpan di storage RAM node dan dapat kontrak tersebut menyimpan berbagai elemen dan kegiatan yang terjadi di blockchain , membuat smartcontract di blockchain vexanium sebenarnya Cukup Mudah berikut adalah beberapa tahapan dasar untuk membuat smartcontract dasar di vexanium :
Tahap Pertama adalah anda harus Memiliki VEX.Account (12 character atau premium dibawah 12 character) ,
Membuat akun (VEX.account ) baik yang gratis ataupun premium
https://club.vexanium.com/post/5deefef1887eed6b04d13afe
di Vexanium blockchain setiap akun VEX.Account juga bisa merupakan smartcontract akun , jika anda memiliki account VEX.Account bernama : agusagus12 , dan anda mengkompile dan mempublish smartcontract menggunakan akun agusagus12 , maka semua kegiatan yang related dengan smartcontract akan tercapat melalui akun agusagus12 , contoh agusagus12 menerbitkan Token bernama Budi , maka semua kegiatan in-out dari token budi akan otomatis tercatat di akun agusagus12 , karena agusagus12 merupakan akun yang mempublish smartcontract ,
kedua misalnya agusagus12 membuat smartcontract basic seperti mempublish pesan , maka jika ada akun lain yang menggunakan kontrak tersebut semua pesan tersebut akan tercatat di akun agusagus12
Tahap Kedua anda Wajib menginstall Nodes ,Vexanium yang terdiri dari CLI dan di server / CPU anda dan mengimport vex.account anda
https://vexanium.s3-ap-southeast-1.amazonaws.com/dl/vex1.7.4bin_ubuntu18.zip
( ubuntu 18 , RAM minimum 8GB )
,setelah anda berhasil menginstall anda dapat melakukan Import Account anda Detailnya caranya ada disini :
https://club.vexanium.com/post/5e32929e43d1370a6077fc2c
dan disini :
https://club.vexanium.com/post/5e0311e6635f230df7c15a74
Tahap Ketiga
Meninginstall CDT (Contract Development ToolKit Vexanium )
Tutorial disini :
https://club.vexanium.com/post/5e2e6e2d8348d3353e5de741
Tahap Keempat
Menyiapkan Folder Contracts dan file smartcontracts ,
ada beberapa hal yang anda harus persiapkan
* vex.account — Akun untuk mempublish Smartcontract anda.
* contract-dir — contract directory dari smartcontract tersebut
* wast-file — File yang bersisi smart contract WAST or WASM.
* abi-file — ABI File dari contract tersebut
Setelah file ini terkumpul anda sudah siap mendeploy smartcontract dari vexanium
(Bersambung)
Smart contract is the software that runs on the VEXANIUM nodes, whose persistent data is stored on the node’s RAM and events of actions are stored and synced on the blockchain. An VEXANIUM smart contract exposes executable ‘Actions’, which are functions that perform some contract specific operations, subject to constraints and authorities of the account calling that action. Considering this, we can visualize contract as a combination of 3 facets working together.
First, we have functions definitions that specify the logic of the action. Second, we have multi-index tables, which provide us with interface to connect with persistent storage (RAM). Third, we have the ‘dispatcher’, which acts as the action handler, and maps the incoming request to the contract to the action that is being requested. These three components are the basic ‘bare bones’ that every contract possess.
the basic needs that you must now before creating contract is
1st : you Must Install Cleos or CLI Command in your server / CPU
https://vexanium.s3-ap-southeast-1.amazonaws.com/dl/vex1.7.4bin_ubuntu18.zip
( ubuntu 18 , RAM minimum 8GB )
2nd : Import or create vex account
3rd : You Must Running a Node , if you node running a node you can use API
4th : If you cannot running a Node you can use API POint of another NODE The `url` parameter specifies to witch node you connect. You can checkout more API endpoints on of API Point is http://explorer.vexanium.com:8080
5th : Don't Forget to Buy RAM in your VEX Account ( account contracts )
6th : Install CDT
https://vexgift.s3-ap-southeast-1.amazonaws.com/dl/vex.cdt.add.amd64.deb
7th : prepare
* VEX account — the account to publish a contract for.
* contract-dir — contract directory ( where you Put Wasm or abi files )
* wast-file — the file containing the contract WAST
* abi-file — the ABI of the contract.
you can download many files of smartcontract , you can use many eosio.contracts files also in vexanium blockchain
8th : Compile Contracts
9th : Push contract (done )
Hallo apakah sudah punya akun vexwallet gratis ? , jika sudah anda bisa mencoba mengimport vex.account dengan Cli command di console
jika belum , buat dulu vex.account di vexwallet mobile gratis , lalu simpan private key nya
baca disini : https://club.vexanium.com/post/5deefef1887eed6b04d13afe
setelah itu anda bisa install vex brew di macbook ataupun di linux ubuntu 1.8 , jika pakai windows bisa dilihat disini : https://club.vexanium.com/post/5dee12ab3fd3a25903781165
Nah setelah selesai install bisa buka folder dimana tadi menginstall vex brew lalu
1. Buat Wallet ( buat wallet ini tidak sama dengan vex.account ini hanya local )
./cleos wallet create --to-console -n testnama
(akan ada password wallet , simpan baik baik ,password wallet ini hanya untuk membuka wallet di local bukan untuk membuka vex.account
2. import VEX.Account kamu ke wallet local tadi
./cleos wallet import -n testnama --private-key 5JLXXXXXXXXXXXXXXB3X
, setelah berhasil vex.account anda sudah bisa melakukan beberapa aktifitas
seperti mengirim vex, atau melakukan Bidname dll
BidName 12 huruf tanpa vexwalet bidname.vexanium bisa melalui console , kodenya (contoh anda ingin membid name amerika )
./cleos --url http://39.105.124.20:8080 system bidname testnama amerika '2000.0000 VEX'
jika sudah menang maka anda bisa mentranfer ke akun lain
./cleos --url http://39.105.124.20:8080 system newaccount --transfer vexindonesia amerika Pubkey --stake-net "0.5000 VEX" --stake-cpu "0.5000 VEX" --buy-ram "0.5000 VEX"