[Help] how to decode transaction? i can not broadcast tx to blockchian.
weixuefeng opened this issue · 0 comments
weixuefeng commented
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?