You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have to response signature, but I can't find how to do that.
I tried many things, but noting worked. Still singnature verify Failed
// this cause RangeError (byteOffset): Index out of range: index should be less than 3199: 3199SignedTx.fromBytes(utf8.encode(jsonEncode(parameters))).toString()
// this cause verify Failedfinal instructionsJson = parameters['instructions'] asList<dynamic>;
final instructions = instructionsJson.map((json) {
returnInstruction(
programId:Ed25519HDPublicKey.fromBase58(json['programId']),
accounts: json['key'].runtimeType ==List? (json['key'] asList<Map<String, dynamic>>)
.map((e) =>AccountMeta(
pubKey:Ed25519HDPublicKey.fromBase58(e['pubKey']),
isWriteable: e['isWriteable'],
isSigner: e['isSigner']))
.toList()
: [],
data:ByteArray.fromString(jsonEncode(json['data'])));
}).toList();
final message =Message(instructions: instructions);
final compiledMessage = message.compile(
recentBlockhash: parameters['recentBlockhash'],
feePayer:Ed25519HDPublicKey.fromBase58(parameters['feePayer']));
Signature sign =await wallet.sign(compiledMessage.toByteArray());
Describe the solution you'd like
A clear and concise description of what you want to happen.
I want to generate signature from json format transaction
The text was updated successfully, but these errors were encountered:
Hello @minemos@elvinasn! I hope I am not coming late to the party. I'm working on Supporting Solana (along with other chains on WalletConnectFlutterV2 sample wallet and I'm handling your scenario. It's a long shot but in case you are still seeking for help here it is the draft PR https://github.com/WalletConnect/WalletConnectFlutterV2/pull/289/files
You'll be interested mainly in example/wallet/lib/dependencies/chains/solana_service.dart
Is your feature request related to a problem? Please describe.
I am using wallet connect v2 and when transaction sign request received, it give me json format transactions.
I have to response signature, but I can't find how to do that.
I tried many things, but noting worked. Still singnature verify Failed
Describe the solution you'd like
A clear and concise description of what you want to happen.
I want to generate signature from json format transaction
The text was updated successfully, but these errors were encountered: