MCPcopy Index your code
hub / github.com/bitpay/bitcore / transaction

Method transaction

packages/bitcore-node/src/rpc.ts:188–194  ·  view source on GitHub ↗
(txid: string, block?: string)

Source from the content-addressed store, hash-verified

186 }
187
188 async transaction(txid: string, block?: string): Promise<RPCTransaction> {
189 const args = [txid, true];
190 if (block) {
191 args.push(block);
192 }
193 return (await this.call('getrawtransaction', args)) as RPCTransaction;
194 }
195
196 async sendtoaddress(address: string, value: string | number) {
197 await this.setWallet();

Callers 1

transactionsFunction · 0.95

Calls 1

callMethod · 0.95

Tested by

no test coverage detected