mirror of
				https://github.com/Xahau/xahau.js.git
				synced 2025-11-04 04:55:48 +00:00 
			
		
		
		
	* add apiVersion support to requests and AccountInfoResponse v1/v2 types * fix submitAndWait signature * update docker container README * update tests * fix apiVersion param in wrong position of Client.request * add integ tests * update HISTORY.md * fix request.api_version * update RIPPLED_DOCKER_IMAGE to use v2.1.0 * refactor Client.request signature * update rippled docker image * fix Client.requestAll * update rippled docker image to use v2.1.1 * update README * use import type * fix faucet; unrelated to PR * add api_version v2 support and set as default while providing support for v1 * refactor: add apiVersion to Client * resolve errors * use DeliverMax for isPartialPayment check * update fixtures * resolve lint errors * add API v1 support for isPartialPayment * update CONTRIBUTING * update accountTx JSDoc * revert deleted JSDoc comments in accountTx * update JSDoc for account_info response * only use client.apiVersion in Client.request() * add ledger_hash * remove API v1 comment from v2 model * update meta_blob JSDoc * delete second AccountTxRequest matching * add close_time_iso * set close_time_iso as optional field * add meta_blob to BaseResponse * Revert "add meta_blob to BaseResponse" This reverts commit 89794c629dc515915e28752d7c2552bfeab266a3. * use DEFAULT_API_VERSION throughout call stack * improve JSDoc explanation of ledger_index * remove this.apiVersion from getLedgerIndex * refactor Client.request() * refactor RequestManger.resolve() * add TODO to fix TxResponse type assertion * use @category ResponsesV1 for API v1 types * refactor accountTxHasPartialPayment() * remove TODO
		
			
				
	
	
		
			119 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			119 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
  "tx_json": {
 | 
						|
    "Account": "rGFuMiw48HdbnrUbkRYuitXTmfrDBNTCnX",
 | 
						|
    "DeliverMax": {
 | 
						|
      "currency": "USD",
 | 
						|
      "issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
 | 
						|
      "value": "10"
 | 
						|
    },
 | 
						|
    "Destination": "rNNuQMuExCiEjeZ4h9JJnj5PSWypdMXDj4",
 | 
						|
    "Fee": "10000",
 | 
						|
    "Flags": 131072,
 | 
						|
    "Sequence": 23295,
 | 
						|
    "SigningPubKey": "02B205F4B92351AC0EEB04254B636F4C49EF922CFA3CAAD03C6477DA1E04E94B53",
 | 
						|
    "TransactionType": "Payment",
 | 
						|
    "TxnSignature": "3045022100FAF247A836D601DE74A515B2AADE31186D8B0DA9C23DE489E09753F5CF4BB81F0220477C5B5BC3AC89F2347744F9E00CCA62267E198489D747578162C4C7D156211D",
 | 
						|
    "hash": "A0A074D10355223CBE2520A42F93A52E3CC8B4D692570EB4841084F9BBB39F7A"
 | 
						|
  },
 | 
						|
  "meta": {
 | 
						|
    "AffectedNodes": [
 | 
						|
      {
 | 
						|
        "ModifiedNode": {
 | 
						|
          "FinalFields": {
 | 
						|
            "Account": "rGFuMiw48HdbnrUbkRYuitXTmfrDBNTCnX",
 | 
						|
            "Balance": "1930599790",
 | 
						|
            "Flags": 0,
 | 
						|
            "OwnerCount": 2,
 | 
						|
            "Sequence": 23296
 | 
						|
          },
 | 
						|
          "LedgerEntryType": "AccountRoot",
 | 
						|
          "LedgerIndex": "267C16D24EC42EEF8B03D5BE4E94266B1675FA54AFCE42DE795E02AB61031CBD",
 | 
						|
          "PreviousFields": {
 | 
						|
            "Balance": "1930609790",
 | 
						|
            "Sequence": 23295
 | 
						|
          },
 | 
						|
          "PreviousTxnID": "0F5396388E91D37BB26C8E24073A57E7C5D51E79AEE4CD855653B8499AE4E3DD",
 | 
						|
          "PreviousTxnLgrSeq": 22419806
 | 
						|
        }
 | 
						|
      },
 | 
						|
      {
 | 
						|
        "ModifiedNode": {
 | 
						|
          "FinalFields": {
 | 
						|
            "Balance": {
 | 
						|
              "currency": "USD",
 | 
						|
              "issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
 | 
						|
              "value": "-9.980959751659681"
 | 
						|
            },
 | 
						|
            "Flags": 2228224,
 | 
						|
            "HighLimit": {
 | 
						|
              "currency": "USD",
 | 
						|
              "issuer": "rNNuQMuExCiEjeZ4h9JJnj5PSWypdMXDj4",
 | 
						|
              "value": "1000000"
 | 
						|
            },
 | 
						|
            "HighNode": "0000000000000000",
 | 
						|
            "LowLimit": {
 | 
						|
              "currency": "USD",
 | 
						|
              "issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
 | 
						|
              "value": "0"
 | 
						|
            },
 | 
						|
            "LowNode": "0000000000000423"
 | 
						|
          },
 | 
						|
          "LedgerEntryType": "RippleState",
 | 
						|
          "LedgerIndex": "C66957AF25229357F9C2D2BA17CE47D88169788EDA7610AD0F29AD5BCB225EE5",
 | 
						|
          "PreviousFields": {
 | 
						|
            "Balance": {
 | 
						|
              "currency": "USD",
 | 
						|
              "issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
 | 
						|
              "value": "-0.0009198315"
 | 
						|
            }
 | 
						|
          },
 | 
						|
          "PreviousTxnID": "2A01E994D7000000B43DD63825A081B4440A44AB2F6FA0D506158AC9CA6B2869",
 | 
						|
          "PreviousTxnLgrSeq": 22420532
 | 
						|
        }
 | 
						|
      },
 | 
						|
      {
 | 
						|
        "ModifiedNode": {
 | 
						|
          "FinalFields": {
 | 
						|
            "Balance": {
 | 
						|
              "currency": "USD",
 | 
						|
              "issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
 | 
						|
              "value": "-276666.975959"
 | 
						|
            },
 | 
						|
            "Flags": 131072,
 | 
						|
            "HighLimit": {
 | 
						|
              "currency": "USD",
 | 
						|
              "issuer": "rGFuMiw48HdbnrUbkRYuitXTmfrDBNTCnX",
 | 
						|
              "value": "1000000"
 | 
						|
            },
 | 
						|
            "HighNode": "0000000000000000",
 | 
						|
            "LowLimit": {
 | 
						|
              "currency": "USD",
 | 
						|
              "issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
 | 
						|
              "value": "0"
 | 
						|
            },
 | 
						|
            "LowNode": "00000000000002D7"
 | 
						|
          },
 | 
						|
          "LedgerEntryType": "RippleState",
 | 
						|
          "LedgerIndex": "FFD710AE2074A98D920D00CC352F25744899F069A6C1B9E31DD32D2C6606E615",
 | 
						|
          "PreviousFields": {
 | 
						|
            "Balance": {
 | 
						|
              "currency": "USD",
 | 
						|
              "issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
 | 
						|
              "value": "-276676.975959"
 | 
						|
            }
 | 
						|
          },
 | 
						|
          "PreviousTxnID": "BB9DFC87E9D4ED09CA2726DDFE83A4A396ED0D6545536322DE17CDACF45C0D5B",
 | 
						|
          "PreviousTxnLgrSeq": 22419307
 | 
						|
        }
 | 
						|
      }
 | 
						|
    ],
 | 
						|
    "delivered_amount": {
 | 
						|
      "currency": "USD",
 | 
						|
      "issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
 | 
						|
      "value": "9.980039920159681"
 | 
						|
    },
 | 
						|
    "TransactionIndex": 5,
 | 
						|
    "TransactionResult": "tesSUCCESS"
 | 
						|
  }
 | 
						|
}
 |