PHP WebShell
Текущая директория: /opt/BitGoJS/modules/sdk-coin-coredao/test/unit/transactionBuilder
Просмотр файла: send.ts
import { getBuilder } from '../getBuilder';
import should from 'should';
describe('Coredao Transfer Builder', () => {
describe('Build from TxHex', function () {
it('Should successfully build from txHex', async function () {
const txBuilder = getBuilder('tcoredao');
const txHex =
'0xf9016c02843b9aca0083b8a1a0948f977e912ef500548a0c3be6ddde9899f1199b8180b901043912521500000000000000000000000019645032c7f1533395d44a629462e751084d3e4c000000000000000000000000000000000000000000000000000000003b9aca0000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000005ec67e28000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008208d7a01157f17e3b584fa18159a0badf189c4fcea677afdbd0af8bfa9429d9a21665e7a04ac01f86b999875a64ff8333d09143ab78ab2b26fd26d6b09d367449bcf8d59c';
txBuilder.from(txHex);
const parsedTx = await txBuilder.build();
should.exist(parsedTx.toJson());
});
});
});
Выполнить команду
Для локальной разработки. Не используйте в интернете!