mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
Release 1.7.0
This commit is contained in:
@@ -5600,6 +5600,7 @@ Submits a signed transaction. The transaction is not guaranteed to succeed; it m
|
|||||||
Name | Type | Description
|
Name | Type | Description
|
||||||
---- | ---- | -----------
|
---- | ---- | -----------
|
||||||
signedTransaction | string | A signed transaction as returned by [sign](#sign).
|
signedTransaction | string | A signed transaction as returned by [sign](#sign).
|
||||||
|
failHard | boolean | *Optional* If `true`, and the transaction fails locally, do not retry or relay the transaction to other servers. Defaults to `false`.
|
||||||
|
|
||||||
### Return Value
|
### Return Value
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ripple-lib",
|
"name": "ripple-lib",
|
||||||
"version": "1.6.6-beta.2",
|
"version": "1.7.0",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"description": "A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser",
|
"description": "A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser",
|
||||||
"files": [
|
"files": [
|
||||||
|
|||||||
@@ -44,7 +44,10 @@ async function submit(
|
|||||||
// 1. Validate
|
// 1. Validate
|
||||||
validate.submit({signedTransaction})
|
validate.submit({signedTransaction})
|
||||||
// 2. Make Request
|
// 2. Make Request
|
||||||
const response = await this.request('submit', {tx_blob: signedTransaction, ...(failHard ? {fail_hard: failHard} : {})})
|
const response = await this.request('submit', {
|
||||||
|
tx_blob: signedTransaction,
|
||||||
|
...(failHard ? {fail_hard: failHard} : {})
|
||||||
|
})
|
||||||
// 3. Return Formatted Response
|
// 3. Return Formatted Response
|
||||||
return formatSubmitResponse(response)
|
return formatSubmitResponse(response)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user