asynchronous
submitAndWait

Description

Send a request to submit a prepared tx_blob to the xrp ledger.


Usage

await sdk.async.submitAndWait(address: string, txblob: string, opts?: SignOpts)

Parameters

address: string;
txblob: 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 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.submitAndWait(
  'rUmoi1vt8apeKsqFYKMRSiMvWixFDMC8Jz', //address
  '12000722000800002...B58D09F27045C46' // hex blob
);
 
console.log(request, response, createdAt, resolvedAt);