PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/algosdk/dist/esm/src/client/v2/algod
Просмотр файла: getTransactionProof.js
import JSONRequest from '../jsonrequest';
export default class GetTransactionProof extends JSONRequest {
constructor(c, intDecoding, round, txID) {
super(c, intDecoding);
this.round = round;
this.txID = txID;
this.round = round;
this.txID = txID;
}
path() {
return `/v2/blocks/${this.round}/transactions/${this.txID}/proof`;
}
/**
* Exclude assets and application data from results
* The type of hash function used to create the proof, must be one of: "sha512_256", "sha256"
*
* #### Example
* ```typescript
* const hashType = "sha256";
* const round = 123456;
* const txId = "abc123;
* const txProof = await algodClient.getTransactionProof(round, txId)
* .hashType(hashType)
* .do();
* ```
*
* @param hashType
* @category query
*/
hashType(hashType) {
this.query.hashtype = hashType;
return this;
}
}
//# sourceMappingURL=getTransactionProof.js.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!