8000 Error: `Cost of transaction exceeds sender balance` when transfer ## 摘要:【CITA1-v0.23】账户余额有21000010000,转账1000,提示余额不足。 · Issue #551 · citahub/cita · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Error: Cost of transaction exceeds sender balance when transfer ## 摘要:【CITA1-v0.23】账户余额有21000010000,转账1000,提示余额不足。 #551

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

Closed
wangfh666 opened this issue May 8, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@wangfh666
Copy link

摘要:【CITA1-v0.23】账户余额有21000010000,转账1000,提示余额不足。

前提条件:
1、起经济模型的链;
2、创建2个账户A和B;
3、quotaPrice默认1000000;

操作步骤:
1、用管理员账户给A转账21000010000;
2、A给B转账1000,查看交易回执 --KO;

预期结果:A给B转账应该转账成功。

实际结果:手续费消耗21000000000,加上转账额度1000,A总消耗21000001000,账户应该余额9000,实际操作提示"Cost of transaction exceeds sender balance."。

@wangfh666 wangfh666 added the bug Something isn't working label May 8, 2019
@kaikai1024 kaikai1024 changed the title 摘要:【CITA1-v0.23】账户余额有21000010000,转账1000,提示余额不足。 Error: Cost of transaction exceeds sender balance when transfer ## 摘要:【CITA1-v0.23】账户余额有21000010000,转账1000,提示余额不足。 May 8, 2019
@kaikai1024 kaikai1024 assigned leeyr338 and unassigned kaikai1024 May 8, 2019
@leeyr338
Copy link
Contributor
leeyr338 commented May 9, 2019

If you are using cita-cli to transfer, it will set quota = 30000 as default:

cita> transfer --help
>> transfer
Transfer value from address to address

USAGE:
    transfer [OPTIONS] --address <address> --private-key <private-key> --value <value>

FLAGS:
    -h, --help    Prints help information

OPTIONS:
        --address <address>            Transfer to address
        --private-key <private-key>    Transfer Account Private Key
        --value <value>                Transfer amount
        --quota <quota>                Transaction quota costs, default 30000 [default: 30000]

So you will get the error:

Cost of transaction exceeds sender balance.

You must set quota by yourself, and the transfer will be success, use command:

transfer --address 0x2491adb142ff859cf55312ebb57c3e9ca3432f96 --private-key 0x860ebce0dc9f6e671f46f3134e8b29c05a4efd5fa6836f3b9d6f9feeb19f15a4 --value 1000 --quota 21000

And will get your expected.

@kaikai1024
Copy link
Contributor

@wangfh666

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
0