[Question]how can i change maxfeerate in sendrawtransaction? #22466

issue lpf763827726 opened this issue on July 16, 2021
  1. lpf763827726 commented at 10:05 AM on July 16, 2021: none

    I follow the developer.bitcoin.org and try JSON-RPC in golang, but i don't know how can i change maxfeerate,there is no Examples about this, only the "hexstring". i only have 0.002 test BTC, please help me how can i change the maxfeerate

    the code in golang:

    hexstring := "020000000001014d4e302ec3fbda1abb365****"
    fee := 0.0001
    str_fee := strconv.FormatFloat(fee, 'f', -1, 64)
    reqJson := "{\"method\":\"sendrawtransaction\",\"params\":[\""+ hexstring +"\", "+ fee +"],\"id\":\"sendrawtransaction\"}";
    returnJson, err := rpcClient.send(reqJson)
    

    2021-07-16_17-54 2021-07-16_17-55 2021-07-16_17-57

  2. MarcoFalke commented at 10:46 AM on July 16, 2021: member

    bad-txns-in-belowout is telling you that the transaction is invalid (hexstring param), not the maxfeerate param.

    Let us know if you have any other questions.

  3. MarcoFalke closed this on Jul 16, 2021

  4. lpf763827726 commented at 4:20 AM on July 17, 2021: none

    i change fee in golang, it work, maybe i just don't understand what mean maxfeerate in the page,so i'm stuck

  5. DrahtBot locked this on Aug 18, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-29 03:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me