Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
Sia
Sia
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
    • Insights
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
    • Locked Files
  • Issues 222
    • Issues 222
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 34
    • Merge Requests 34
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Security & Compliance
    • Security & Compliance
    • Dependency List
  • Packages
    • Packages
    • Container Registry
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • NebulousLabs
  • SiaSia
  • Issues
  • #2216

Closed
Open
Opened Aug 03, 2017 by Fornax@Fornax96
  • Report abuse
  • New issue
Report abuse New issue

Feature: Subtract transaction fees from sent amount in POST /wallet/siacoins API

Right now when a Siacoin transaction is sent the fees are calculated and paid from the remaining balance in the wallet. But this isn't possible when trying to send all the coins in the wallet. It's also very hard to predict the fees you need to subtract from the amount beforehand. Before 1.3 I used to just subtract 10 SC from the amount and it would always work, but now it still leaves some coins behind when I do that.

Most other cryptocurrency wallets have a button to empty the wallet, which creates a transaction with all coins in the wallet to an address.

That's why I would like a boolean parameter for the POST /wallet/siacoins API that allows the fees to be subtracted from the transaction amount. That way I can empty a wallet and make sure there's not a single Hasting left behind.

Related issues

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
3
Labels
Feature Request Node Wallet
Assign labels
  • View project labels
Reference: NebulousLabs/Sia#2216