fix fee rpc to allow tx_blob

This commit is contained in:
Richard Holland
2022-03-21 10:17:26 +00:00
parent 7b834714c2
commit ee539fdea7
6 changed files with 89 additions and 57 deletions

View File

@@ -48,6 +48,26 @@ module.exports = {
console.log(acc)
return acc
};
const pay = (seed, amt, dest) =>
{
return new Promise((resolve, reject) =>
{
let wal = xrpljs.Wallet.fromSeed(seed);
api.submit({
Account: wal.classicAddress,
TransactionType: "Payment",
Amount: ''+amt,
Destination: dest,
Fee: "10000"
}, {wallet: wal}).then(x=>
{
assertTxnSuccess(x);
resolve(x);
}).catch(err);
});
};
const hookHash = fn =>
{
@@ -93,7 +113,8 @@ module.exports = {
hsfNSDELETE: 2,
hfsOVERRIDE: 1,
hfsNSDELETE: 2,
hookHash: hookHash
hookHash: hookHash,
pay: pay
});
}).catch(err);
});