Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help] how to decode transaction? i can not broadcast tx to blockchian. #570

Open
weixuefeng opened this issue Mar 20, 2024 · 0 comments
Open

Comments

@weixuefeng
Copy link

weixuefeng commented Mar 20, 2024

when i post this transaction to rpc, i got response only hash, and i can not found it on blockchain or any error message. i want to know where my problem is ?

sdk is: wallet-core, like this

code:

Future<String> signTransaction(String toAddress, String privateKeyHex,
      BigInt amount, String? encodedContractData) async {
    var expire =
        (DateTime.now().microsecondsSinceEpoch / 1000000 + 300).toInt();
    Log.d("expire: $expire");
    var transfer = Everscale.Transfer(
        amount: $fixnum.Int64(amount.toInt()),
        expiredAt: expire,
        to: toAddress,
        behavior: Everscale.MessageBehavior.SimpleTransfer,
        bounce: false,
        encodedContractData: encodedContractData);
    var signingInput = Everscale.SigningInput(
        transfer: transfer, privateKey: privateKeyHex.toUint8List());
    var signed = AnySigner.sign(
        signingInput.writeToBuffer(), TWCoinType.TWCoinTypeEverscale);
    Everscale.SigningOutput output = Everscale.SigningOutput.fromBuffer(signed);
    return output.encoded;
  }

result:

   var data =
   "te6ccgICAAQAAQAAAUoAAAPhiAHTB1Uvjerh0Tw4uwZOfH3sWlUBz/l/PF6gz1UmjK+GRhGLPQae5CBpkmxN+YuMpdAiHwYVzS9XfWuSNnplma1Z9fVp8eQ/Fbs5iYsHEk7jx6OvCi/HamAqFJiQJ2v2J6EAaXUlsUy/VG7gAAAAAHAAAwACAAEAaEIAYCUduyOdc1Ge+0Ux+ghMmxAxYzRJ8AMiyXinOzK3tb4h3NZQAAAAAAAAAAAAAAAAAAAAUAAAAABLqS2KpIIs9RVh0XO9boobPTIgF0wzH20xTuYEsWsHcGnE6X4A3v8AIN0gggFMl7ohggEznLqxn3Gw7UTQ0x/THzHXC//jBOCk8mCDCNcYINMf0x/TH/gjE7vyY+1E0NMf0x/T/9FRMrryoVFEuvKiBPkBVBBV+RDyo/gAkyDXSpbTB9QC+wDo0QGkyMsfyx/L/8ntVA==";
    var hash =
      "89b5f22912ce05f0cb33944e6ed5ae4c6536c58b3d7e649f30cdf03108fb51d4";
    var res = await client.sendTransaction(data, hash);

and i got graphql result:

89b5f22912ce05f0cb33944e6ed5ae4c6536c58b3d7e649f30cdf03108fb51d4

but i can not found it on blockchain. what is my problem?

how can i check my transaction right or wrong by myself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant