Skip to content

Commit

Permalink
feat: add getTxChainLocks to RPC list and array to types
Browse files Browse the repository at this point in the history
  • Loading branch information
coolaj86 committed Mar 13, 2024
1 parent d210ce7 commit 6bfdc6a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ RpcClient.callspec = {
getSpentInfo: 'obj',
getSuperBlockBudget: 'int',
getTransaction: '',
getTxChainLocks: 'array',
getTxOut: 'str int bool',
getTxOutProof: 'str str',
getTxOutSetInfo: '',
Expand Down Expand Up @@ -385,6 +386,12 @@ function generateRPCMethods(constructor, apiCalls, rpc) {
}
return arg;
},
array(arg) {
if (typeof arg === 'string') {
return JSON.parse(arg);
}
return arg;
},
};

for (const k in apiCalls) {
Expand Down

0 comments on commit 6bfdc6a

Please sign in to comment.