Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 05 15:08
    libotony synchronize #308
  • Dec 05 14:58
    qianbin closed #307
  • Dec 05 14:57

    qianbin on master

    fix(disco): load key from keyhe… Merge pull request #307 from li… (compare)

  • Dec 05 10:45
    uldaman commented #35
  • Dec 05 10:34
    deantheiceman commented #35
  • Dec 05 10:08
    uldaman commented #35
  • Dec 05 10:08
    uldaman commented #35
  • Dec 05 10:05
    uldaman commented #34
  • Dec 05 10:03

    uldaman on fix-#34

    Issue #34 (compare)

  • Dec 05 08:20
    libotony opened #308
  • Dec 05 07:58
    libotony opened #307
  • Dec 04 06:41
    deantheiceman commented #35
  • Dec 04 04:34
    deantheiceman opened #35
  • Dec 04 04:02
    andrewklau opened #34
  • Dec 02 08:54
    olena27 edited #98
  • Dec 02 08:52
    olena27 opened #98
  • Nov 28 21:15
    Fibonacci81 commented #367
  • Nov 28 20:07
    Atl9889 commented #367
  • Nov 28 02:57
    XJWX89 commented #367
  • Nov 27 20:37
    Fibonacci81 commented #367
凉凉
@vae520283995
@qianbin hello
Tihon1987
@Tihon1987
Hello everyone, I had a coin transfer to the wallet’s ether address, here is the transaction number https://insight.vecha.in/#/main/txs/0x65d67db285f496476d1450354a0564030e5d4c3fe1357caf10870213be0ca73a this is an error. can i get my coins back?
libotony
@libotony
import the keystore of the recipient's address(from ETH wallet ) into vechain wallets(Sync/Mobile Wallet etc)
@Tihon1987
Tihon1987
@Tihon1987
But aren't these different blockchains? ,@libotony
Tihon1987
@Tihon1987
or the hash standard is the same?
libotony
@libotony
The cryptographic algorithm is the same
Tihon1987
@Tihon1987
Thanks for the help, I will try. I’ll write by the result
libotony
@libotony
You are welcome
Tihon1987
@Tihon1987
I managed! uploaded keystore through a wallet https://mycrypto.com/account and inserted it into tor mobile
Jeevan
@lpfloyd
Hey there guys! Glad to be apart of this community!
I am a developer based in Melbourne that is very interested in this community. Currently building a tool that will allow developers to leverage multiple blockchains through a single interface and Vechain is included in the MVP of this project.

@qianbin

chainTag is bound to network, the last byte of genesis block id. 0x4a for mainnet and 0x27 for testnet.

What would I set the chainTag if I am running my own network?

Qian Bin
@qianbin
it depends on the genesis block
can’t be freely set
Jeevan
@lpfloyd
@qianbin alright thank you :D
segersniels
@segersniels
Hi, been trying to read VTHO transactions from the logs/event endpoint but am unable to figure out how to actually decode the data in the response. How do I go about this?
libotony
@libotony
You may need some ABI decode tool to do this such as thor-devkit
For more information of ABI, please read this
libotony
@libotony
@segersniels
segersniels
@segersniels
@libotony That actually helped me a lot, thanks! One more question, how do I figure which topic a token belongs too? Use case being trying to fetch event logs for a token based on its transfer topic.
Can I construct it if I know the contract address?
libotony
@libotony
For VIP-181(ERC20) compatible tokens they share the same abi of Transfer Event, it's defined in the standard
segersniels
@segersniels
Ok thanks. By the way, is there a way to know how much VTHO was generated for having VET? Sorry if I'm asking really dumb questions, trying to wrap my head around all of this 😅
libotony
@libotony
0.000432 THOR per VET per day
Adam Friedman
@AdamBFriedman
In Vechain Thor app - they've added a new feature that serves as a loading screen when you are conducting a transaction. It is directly affecting a method in my dapp. Is there a way to disable this new feature? Or at least manipulate it? Is there a class or id tag of that loading element that I can grab?
tomggokok
@tomggokok
@AdamBFriedman This is the trading process of the dapp. When the dapp triggers the trading api, it will call the original page to complete the payment.
@AdamBFriedman What is the application scenario for your dapp payment?
Daniil
@dvneverov
Hi! We are using Vechain in one of our projects and there's couple of things we couldn't find in docs:
1) As we see, gas, used for processing transaction can be paid by some Sponsor (not by Origin), but what is the way to add such Sponsor to the transaction? There's some property GasPayer, but we couldn't find how to affect on it. Would be great if there's any example with JS based tools.
2) According to docs: "It is suggested that transaction confirmation block should over 12". So 12 blocks is constant value and it shouldn't ever change or it's just a recommendation?
3) Some transactions have value of property 'reverted' equaled true and they were packed to valid block inside blockchain. As we found out, transaction should be rejected and not going to be packed inside block if there's not enough VET or gas for processing it or because of some other conditions. But how transaction can become reverted and at what moment?
For 2, it's a recommendation
For 3, revert = true means the execution of the tx is reverted(in the virtual machine ) all the previous action before(only during the tx execution) are all reverted. In a word, the tx is packed into the block but not taking effect except the payer needs to pay the txfee
Daniil
@dvneverov
@libotony Thanks for quick response! Ok, 1 and 3 are now clear for me. But in 2 I meant that is it absolutely proper way to check if transaction was executed successfully and was packed in blockchain, by searching for it 12 blocks within the height? And is this number (12) inside of blockchain algorithms or it can be changed somehow?
libotony
@libotony
Yes, it is a proper way of checking if the tx is executed
check this doc, same concept here
Daniil
@dvneverov
@libotony Ok, thanks a lot!
libotony
@libotony
with pleasure
Daniil
@dvneverov

Hi again!
Can you please help me with understanding VIP-191 concept of signing delegated transactions?
I checked and tried this demo: https://github.com/zzGHzz/ThorDemo3 and it works pretty well, but it uses connex.vendor.sign('tx').request() method for singing and sending transactions.
What I need is to sign delegated transaction avoiding use of wallet. So I just want to send delegated transaction like that:

const tx = new Transaction(body);
const signingHash = cry.blake2b256(tx.encode());
tx.signature = cry.secp256k1.sign(signingHash, Buffer.from(sk.slice(2), 'hex'));
const encoded = tx.encode();

const raw = '0x' + encoded.toString('hex');
let ret = await net.http("POST", 'transactions', {
headers: { 'x-genesis-id': connex.thor.genesis.id },
query: {},
body: { raw }
});

So before sending it, I also have to sign it by gasPayer like that:
const tx = new Transaction(body);
const hash = cry.blake2b256(tx.encode());
const delegatorSigningHash = cry.blake2b256(hash, Buffer.from(origin.slice(2), 'hex'));
const sig = cry.secp256k1.sign(delegatorSigningHash, Buffer.from(skDelegator.slice(2), 'hex'));

As it said in VIP-191 docs, signature of delegated transaction consists of 2 parts:
Bytes | Attribute |Type | Optional
0-64 | senderSignature | byte[65] | no
65-129 | gasPayerSignature | byte[65] | yes

According that, how to concatenate both signatures properly to achieve raw transaction which is ready to send?
Thanks in advance.

Daniil
@dvneverov
@libotony yes, working perfect!
I tried to concatenate signatures the same way, but I didnt know about "reserved" field in transaction body. After adding it, everything worked as it should be.
Thank you very much!
libotony
@libotony
you are welcome
abdulakeem50
@abdulakeem50
Hello, everyone...pls I have a problem and I hope I can get ideas to get it solved here
I just transferred VET from BINANCE to Imtoken when I thought the wallet address is the same.. Can it be retrieved?
I expect your urgent and modest answers
libotony
@libotony
Hi @abdulakeem50, the best way to reach out support is to mail support@vechain.com
I have a suggestion regarding your situation, import the recipient's KeyStore(which is stored in imToken) to Sync or mobile wallet and remember only KeyStore works
abdulakeem50
@abdulakeem50
Yeah...Thanks solved with keystore
I appreciate all
libotony
@libotony
: - )