Skip to content

createpsbt output_assets parameter not working #875

Closed
@asoltys

Description

@asoltys

According to the docs for createpsbt, I should be able to provide a JSON object, "output_assets", as the fifth argument to the command to map outputs to assets as with createrawtransaction. But when I provide it, I get error code: -1 and the full createpsbt help text back as an error message.

This works with 4 arguments:

elements-cli createpsbt [] "[{\"AzpkXpbFsWC9aWJvah3JKg99zenqsGyYVhUuYWePmEK3LVozbf6by5wKRMXVKeZP34WzSJ5XwuKSukzM\": 0.05}]" 0 false

But as soon as I add the fifth argument, it doesn't:

elements-cli createpsbt [] "[{\"AzpkXpbFsWC9aWJvah3JKg99zenqsGyYVhUuYWePmEK3LVozbf6by5wKRMXVKeZP34WzSJ5XwuKSukzM\": 0.05}]" 0 false "{\"AzpkXpbFsWC9aWJvah3JKg99zenqsGyYVhUuYWePmEK3LVozbf6by5wKRMXVKeZP34WzSJ5XwuKSukzM\":\"b2e15d0d7a0c94e4e2ce0fe6e8691b9e451377f6e46e8045a86f7c4b5d4f0f23\"}"

I can try to investigate more, just raising the issue in the meantime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions