diff --git a/package.json b/package.json index 571c176..d02cfde 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "@connectrpc/connect-node": "1.4", "@connectrpc/connect-web": "1.4", "@types/node": "20.14.10", - "@utxorpc/spec": "0.12.0", + "@utxorpc/spec": "0.14.0", "buffer": "^6.0.3" }, "exports": { diff --git a/src/cardano.ts b/src/cardano.ts index 72a8ac5..900247e 100644 --- a/src/cardano.ts +++ b/src/cardano.ts @@ -313,6 +313,14 @@ export class SubmitClient { return res.ref[0]; } + async evalTx(tx: TxCbor): Promise { + const res = await this.inner.evalTx({ + tx: [tx].map((cbor) => ({ type: { case: "raw", value: cbor } })), + }); + + return res; + } + async *waitForTx(txHash: TxHash): AsyncIterable { const updates = this.inner.waitForTx({ ref: [txHash],