xrpl_signTransactionBatch
Request structure:
{
txns: xrpl.Transaction[];
fee?: xrpl.Payment;
includesFee?: boolean;
options?: { autofill?: boolean; submit?: boolean };
}
Usage:
provider.request(
{
method: 'xrpl_signTransactionBatch',
params: {
txns: [], // Array of XRPL transaction objects
fee: {}, // XRPL Payment Object
includesFee: true
options: { autofill: true; submit: true };
},
},
chainId: 'xrpl:0' // xrpl:0, xrpl:1, xrpl:2
);
Response
txns: xrpl.TransactionAndMetadata[];
Example using wc-client
:
wc-client
:import core from '@joey-wallet/wc-client/core';
const methods = core.methods
const response = await methods.signTransaction({
provider,
chainId: chain,
request: {
txns: [
{
TransactionType: 'AccountSet',
Account: 'rUmoi1vt8apeKsqFYKMRSiMvWixFDMC8Jz',
},
{
TransactionType: 'AccountSet',
Account:'rUmoi1vt8apeKsqFYKMRSiMvWixFDMC8Jz',
},
],
options: { autofill: true, submit: true },
},
});
Last updated