# Balance **POST /wallets/{walletId}/transactions-balance**

status: under development

Balance a transaction body of a given transaction, add needed inputs/outputs, so as the transaction can be signed from the wallet. ## Servers - https://localhost:8090/v2: https://localhost:8090/v2 () ## Parameters #### Path parameters - **walletId** (string(hex)) ## Body parameters Content-type: application/json - **transaction** (string(base64|base16)) The CBOR-encoded transaction, represented in either hex or base64 encoding. This always includes the transaction body and the witness set, even if the latter is empty. - **inputs** (array[object]) Mapping from inputs (`id`, `ix`) in the supplied `transaction` binary to outputs (`amount`, `assets`, ...). It is not required to include inputs present in the `cardano-node` UTxO, as `cardano-wallet` will automatically query for them. In other words, this field can be left empty unless the supplied `transaction` contains inputs referring to pending transactions. - **redeemers** (array[object]) A list of redeemers data with their purpose. The redeemers in the `transaction` binary will be overwritten by this value. - **encoding** (string) Encoding of transaction CBOR returned in response (base64 by default). ## Responses ### 400: Bad Request #### Body Parameters: application/json (object) - **message** (string) May occur when a request is not well-formed; that is, it fails to parse successfully. This could be the case when some required parameters are missing or, when malformed values are provided. - **code** (string) ### 403: Forbidden #### Body Parameters: application/json (object) - **message** (string) May occur when submitting a withdrawal while another withdrawal is pending. - **code** (string) ### 415: Unsupported Media Type #### Body Parameters: application/json (object) - **message** (string) May occur when providing an invalid 'Content-Type' header. - **code** (string) ### 406: Not Acceptable #### Body Parameters: application/json (object) - **message** (string) May occur when providing an invalid 'Accept' header. - **code** (string) ### 404: Not Found #### Body Parameters: application/json (object) - **message** (string) May occur when a given walletId does not match with any known wallets (because it has been deleted, or has never existed). - **code** (string) - **info** (object) ### 202: Accepted #### Body Parameters: application/json (object) - **transaction** (string(base64|base16)) The CBOR-encoded transaction, represented in either hex or base64 encoding. This always includes the transaction body and the witness set, even if the latter is empty. [Powered by Bump.sh](https://bump.sh)