From c6781db8be0fe590e33e4930f22d5d71b83be9ab Mon Sep 17 00:00:00 2001 From: Sebastien Guillemot Date: Wed, 11 May 2022 15:56:31 +0900 Subject: [PATCH] CIP30: getUtxos null instead of undefined (#181) --- CIP-0030/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CIP-0030/README.md b/CIP-0030/README.md index 600adf76f..b8087dc00 100644 --- a/CIP-0030/README.md +++ b/CIP-0030/README.md @@ -202,11 +202,11 @@ Errors: `APIError` Returns the network id of the currently connected account. 0 is testnet and 1 is mainnet but other networks can possibly be returned by wallets. Those other network ID values are not governed by this document. This result will stay the same unless the connected account has changed. -### api.getUtxos(amount: cbor\ = undefined, paginate: Paginate = undefined): Promise\ +### api.getUtxos(amount: cbor\ = undefined, paginate: Paginate = undefined): Promise\ Errors: `APIError`, `PaginateError` -If `amount` is `undefined`, this shall return a list of all UTXOs (unspent transaction outputs) controlled by the wallet. If `amount` is not `undefined`, this request shall be limited to just the UTXOs that are required to reach the combined ADA/multiasset value target specified in `amount`, and if this cannot be attained, `undefined` shall be returned. The results can be further paginated by `paginate` if it is not `undefined`. +If `amount` is `undefined`, this shall return a list of all UTXOs (unspent transaction outputs) controlled by the wallet. If `amount` is not `undefined`, this request shall be limited to just the UTXOs that are required to reach the combined ADA/multiasset value target specified in `amount`, and if this cannot be attained, `null` shall be returned. The results can be further paginated by `paginate` if it is not `undefined`. ### api.getCollateral(params: { amount: cbor\ }): Promise\