input-output-hk / js-cardano-wasm

various cardano javascript using wasm bindings
MIT License
31 stars 21 forks source link

return the details of the transaction when creating a ready to send tx #4

Closed NicolasDP closed 6 years ago

NicolasDP commented 6 years ago

now, instead of returning only the cbor encoded transaction and witnesses, it also returns the transaction and witnesses.

> JSON.stringify(result.tx.tx, null, 4);
"{
    "inputs": [
        {
            "id": "1c7b178c1655628ca87c7da6a5d9d13c1e0a304094ac88770768d565e3d20e0b",
            "index": 42
        }
    ],
    "outputs": [
        {
            "address": "DdzFFzCqrhtCUjHyzgvgigwA5soBgDxpc8WfnG1RGhrsRrWMV8uKdpgVfCXGgNuXhdN4qxPMvRUtbUnWhPzxSdxJrWzPqACZeh6scCH5",
            "value": 666
        },
        {
            "address": "DdzFFzCqrhtCUjHyzgvgigwA5soBgDxpc8WfnG1RGhrsRrWMV8uKdpgVfCXGgNuXhdN4qxPMvRUtbUnWhPzxSdxJrWzPqACZeh6scCH5",
            "value": 166719
        },
        {
            "address": "DdzFFzCqrhtCUjHyzgvgigwA5soBgDxpc8WfnG1RGhrsRrWMV8uKdpgVfCXGgNuXhdN4qxPMvRUtbUnWhPzxSdxJrWzPqACZeh6scCH5",
            "value": 92669963
        }
    ]
}"