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

wallet initialization and signing transaction problem #149

Open
Kiong2002 opened this issue Jan 4, 2025 · 3 comments
Open

wallet initialization and signing transaction problem #149

Kiong2002 opened this issue Jan 4, 2025 · 3 comments

Comments

@Kiong2002
Copy link

QQ_1735991504817

Hi there, I was wondering why after executing clause 'signedTx = await wallet.signTransaction(transactionParams)', signedTx stay pending status, which caused the signing transaction to fail. I think maybe it is because wallet is not initialized properly. Maybe it needs some connection like using some kind of proxy? NOTE: I am in China, and all the API requests I used were through proxy.
你好,我想问一下为什么执行'signedTx = await wallet.signTransaction(transactionParams)'语句后,signedTx保持pending状态,然后就无法签名?我感觉是因为wallet对象没有被初始化正确。我在中国,是不是wallet的初始化需要代理?(因为我其他的API请求都需要用代理)

@jht6
Copy link
Collaborator

jht6 commented Jan 6, 2025

QQ_1735991504817

Hi there, I was wondering why after executing clause 'signedTx = await wallet.signTransaction(transactionParams)', signedTx stay pending status, which caused the signing transaction to fail. I think maybe it is because wallet is not initialized properly. Maybe it needs some connection like using some kind of proxy? NOTE: I am in China, and all the API requests I used were through proxy. 你好,我想问一下为什么执行'signedTx = await wallet.signTransaction(transactionParams)'语句后,signedTx保持pending状态,然后就无法签名?我感觉是因为wallet对象没有被初始化正确。我在中国,是不是wallet的初始化需要代理?(因为我其他的API请求都需要用代理)

@Kiong2002 你好,本SDK是离线签名,不涉及联网操作。问题中提到的“无法签名”具体是指什么呢,能否提供一下更详细的信息?

@Kiong2002
Copy link
Author

QQ_1735991504817
Hi there, I was wondering why after executing clause 'signedTx = await wallet.signTransaction(transactionParams)', signedTx stay pending status, which caused the signing transaction to fail. I think maybe it is because wallet is not initialized properly. Maybe it needs some connection like using some kind of proxy? NOTE: I am in China, and all the API requests I used were through proxy. 你好,我想问一下为什么执行'signedTx = await wallet.signTransaction(transactionParams)'语句后,signedTx保持pending状态,然后就无法签名?我感觉是因为wallet对象没有被初始化正确。我在中国,是不是wallet的初始化需要代理?(因为我其他的API请求都需要用代理)

@Kiong2002 你好,本SDK是离线签名,不涉及联网操作。问题中提到的“无法签名”具体是指什么呢,能否提供一下更详细的信息?

你好,就只是签名这一句函数一直保持执行状态,迟迟得不到结果

@jht6
Copy link
Collaborator

jht6 commented Jan 13, 2025

image

我尝试重现,在缺少createAssociatedAddress参数的情况下会看到报错信息:
image

加上createAssociatedAddress参数后可正常签名。

【签名这一句函数一直保持执行状态,迟迟得不到结果】这个现象正常不应该出现的,因为整个处理过程中不涉及IO等操作。能否提供一下完整的代码,或者如何能看到这个pending现象?
@Kiong2002

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

4 participants
@jht6 @Kiong2002 and others