Development reference
JSLib api doc
Quras charging model
SysCall:
SysCall | XQG fee | Description |
---|---|---|
Runtime.CheckWitness | 42.20 | This function is to check if the address or pubkey is Quras blockchain's address and pubkey. |
Blockchain.GetHeader | 21.10 | This function is to get Block Header from leveldb. |
Blockchain.GetBlock | 42.20 | This function is to get block from leveldb |
Blockchain.GetTransaction | 21.10 | This function is to get transaction from leveldb |
Blockchain.GetAccount | 21.10 | This function is to get account address from leveldb |
Blockchain.GetValidators | 42.20 | This function is to get validator from leveldb |
Blockchain.GetAsset | 21.10 | This function is to get deployed token by hash value |
Blockchain.GetContract | 21.10 | This function is to get deployed smart contract by hash value |
Transaction.GetReferences | 42.20 | This function is to get transaction referenced from leveldb |
Account.SetVotes | 211.00 | This function is to make an account to vote |
Validator.Register | 211,000.00 | This function is to register a validator |
Asset.Create(system asset) | 5,000.00 | This function is to deploy a token |
Asset.Renew(system asset)[annual] | 5,000.00 | This function is to renew the deployed token. |
Contract.Create | 5,000.00 | This function is to create a new smart contract in leveldb. |
Contract.Migrate | 5,000.00 | This function is to update storage features of deployed smart contracts. |
Storage.Get | 21.10 | This function is to get the value by key from the storage. |
Storage.Put [1 kb] | 211.00 | This function is to get a saved value by key into the storage. |
Storage.Delete | 21.10 | This function is to delete the value by key in the storage |
Opcodes:
Opcode | XQG fee |
---|---|
OpCode.PUSH16 [less than 16] | 0 |
OpCode.NOP | 0 |
OpCode.APPCALL | 0.01 |
OpCode.TAILCALL | 0.01 |
OpCode.SHA1 | 0.01 |
OpCode.SHA256 | 0.01 |
OpCode.HASH160 | 0.02 |
OpCode.CHECKSIG | 0.1 |
OpCode.CHECKMULTISIG | 0.1 |
OpCode.VERIFY | 0.001 |
White paper
Quras technical paper