Description
Send a request to bulk submit an array of transaction blobs to the xrp ledger.
Usage
await sdk.bulkSubmitAndWait(address: string, txblobs: string[], opts?: SignOpts)Parameters
address: string;txblobs: string[]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 requestresponse: BaseResponse;
// response structure will vary depending on the type of the requestcreatedAt: number; // unix;resolvedAt: number; // unix;Example
let {
request,
response,
createdAt,
resolvedAt } = await sdk.bulkSubmitAndWait(
{
TransactionType: 'Payment',
Account: signInResp.response.address,
Destination: [insert destination address here]
Amount: "1000000" // XRP in drops
}
);
console.log( request, response, createdAt, resolvedAt );