OneKeyHQ / OneKeyHQ/hardware-js-sdk

怎么讲onekey生成的地址中的GAS转出

Open
#483 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
35
Forks
39
Avg merge
21h 27m
Merged PRs (30d)
43

Description

HardwareSDK.evmGetAddress(data.value.payload[0].connectId, data.value.payload[0].deviceId, {
bundle: bun
})
我通过上面的方法,在onekey硬件中获取的bsc网络的地址,请问如何将这些地址中的GAS余额转出,因为使用HardwareSDK.evmSignTransaction接口,无法正常的传输转账的金额值,请问应该怎么处理

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the HardwareSDK.evmGetAddress and HardwareSDK.evmSignTransaction entry points, focusing on the BSC transaction flow and how the transfer amount is represented. Review the SDK's transaction examples or relevant implementation to determine the expected GAS transfer behavior. Done means the correct transfer flow is documented or the reported amount-handling problem is reproducible and resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.