asynchronous
bulkSignAndSubmitAndWait

Description

Send a request to bulk sign and submit an array of transactions to the xrp ledger.


Usage

  await sdk.async.bulkSignAndSubmitAndWait(txns: SignTransaction[], opts?: SignOpts)

Parameters

txns: SignTransaction[]

See here (opens in a new tab) for SignTransaction typing.

opts?: { description?: string }

See here (opens in a new tab) for SignOpts typing.


Response

request: BaseRequest;
// request structure will vary depending on the type of the request
response: BaseResponse;
// response structure will vary depending on the type of the request
createdAt: number; // unix;
resolvedAt: number; // unix;

Example

let { request, response, createdAt, resolvedAt } = await sdk.async.bulkSignAndSubmit([
  {
    TransactionType: 'Payment',
    Account: 'rUmoi1vt8apeKsqFYKMRSiMvWixFDMC8Jz',
    Destination: 'rK8jihXBZCFWZqX95SET3CCi1WdRgZQwex',
    Amount: '1000000', // XRP in drops
  },
  {
    TransactionType: 'Payment',
    Account: 'rUmoi1vt8apeKsqFYKMRSiMvWixFDMC8Jz',
    Destination: 'rK8jihXBZCFWZqX95SET3CCi1WdRgZQwex',
    Amount: '1000000', // XRP in drops
  },
]);
 
console.log(request, response, createdAt, resolvedAt);