-
Notifications
You must be signed in to change notification settings - Fork 5
Sync modules
The interface is divided into two parts
Part 1: account overview
- Account list
- Create an account
- Import via key store/private key
- Import via mnemonic
Part 2: account details & account management
- Address & balance
- Delete account
- Change transaction passcode
- Export key store
The interface is divided into two parts Part 1: type of transaction
- Single Transaction
- Multi-Transaction
- Contract deployment
Part 2: build a transaction
Transfer amount of VET to a recipient
| parameter | description | remark |
|---|---|---|
| from | transaction sender | - |
| to | recipient’s address | - |
| value | amount transferred to the recipient | Unit : VET |
| expiration | the transaction expires | Unit:Number of blocks720 as default value Block Number ∈[blockRef.number , BlockRef.number + expiration] |
| gas | The amount of gas to use for the transaction | - |
| data | either the EVM code for account initialization or some input data | - |
Allows a single transaction to carry out multiple tasks.Since the tasks are contained in a single transaction, their executions can be considered as an atomic operation, meaning that, they either all succeed, or all fail.
| parameter | description | remark |
|---|---|---|
| From | transaction sender | - |
| expiration | the transaction expires | Unit:Number of blocks720 as default value Block Number ∈[blockRef.number , BlockRef.number + expiration] |
| gas | The amount of gas to use for the transaction | - |
| To | recipient’s address | - |
| value | amount transferred to the recipient | Unit : VET |
| Data | either the EVM code for account initialization or some input data | - |
Deploy a contract on VeChainThor
once transaction is sent , Sync will return the txID so that you can query it in
insights, once the transaction is successfully on VeChainThor, you can find the contract address in transaction receipt
| parameter | description | remark |
|---|---|---|
| contract Deployer | transaction sending will be contract owner as default | select from account list |
| contract Data | contract data(hex format) | user need to convert the code into hex format |
| expiration | the transaction expires | Unit:Number of blocks720 as default value Block Number ∈[blockRef.number , BlockRef.number + expiration] |
| Maximum gas | The amount of gas to use for the transaction | - |
| parameter | description | remark |
|---|---|---|
| gasPriceCoef | coefficient used to calculate the total gas price |
128 as default value Range: 0~255
|
| blockRef | reference to a specific block |
best block number as default value. |
Provides detailed information on VeChainThor
| parameter | description |
|---|---|
| Block number | number(height) of the block |
| Block ID | identifier of the block |
| Size | byte size of the block that is RLP encoded |
| Parent ID | block ID of parent block |
| Timestamp | timestamp |
| Total Score | cumulative block score since genesis block |
| Number of Transaction | number of transaction in the block |
| Gas limit | the amount of gas used |
| Signer | who signed the block |
| Beneficiary | an address of account to receive block reward |
| TxRoot | root hash of transactions in the block |
| StateRoot | root hash of accounts state |
| ReceiptsRoot | root hash of transaction receipts |
Tx Info
| parameter | description |
|---|---|
| TxID | identifier of the transaction |
| TimeStamp | timestamp |
| From | transaction sender |
| Block Number | number of the block |
| Block Id | identifier of the block |
| Block Ref | reference to a specific block |
| Depends On | ID of the transaction which the transaction depends |
| Nonce | transaction nonce |
| Gas | maximum amount of gas the sender is willing to pay for the transaction |
| Expiration | number of blocks that transaction expire |
| Gas used by transaction | actual used of gas |
| gas price Coefficient | coefficient used to calculate the total gas price |
| Clauses | an array of “clause” objects each of which contains fields “To”, “Value” and “Data” |
| To | receiver ’s address |
| Value | amount transferred to the receiver |
| Data | either the EVM code for account initialization or some input data |
Receipt
| parameter | description |
|---|---|
| Gas Payer | an address who paid the transaction |
| Paid (VTHO) | amount of VTHO cost |
| Tx Reward (VTHO) | transaction reward for proposer |
| Outputs | Event Logs |
| parameter | description |
|---|---|
| Address | address of account |
| Available VET | available VET balance of address |
| Available VTHO | available VTHO balance of address |
| Transfer | logs of transfer |
Faucet only available in Testnet, it bring amount of VET & VTHO to developer to explore the VeChainThor.
Allow user to switch between mainnet and testnet