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
		
			
				
	
	
		
			189 lines
		
	
	
		
			6.4 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			189 lines
		
	
	
		
			6.4 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
  "id": 0,
 | 
						|
  "status": "success",
 | 
						|
  "type": "response",
 | 
						|
  "result": {
 | 
						|
    "tx_json": {
 | 
						|
      "Account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
 | 
						|
      "DeliverMax": {
 | 
						|
        "currency": "USD",
 | 
						|
        "issuer": "rMH4UxPrbuMa1spCBR98hLLyNJp4d8p4tM",
 | 
						|
        "value": "0.001"
 | 
						|
      },
 | 
						|
      "Destination": "rMH4UxPrbuMa1spCBR98hLLyNJp4d8p4tM",
 | 
						|
      "Fee": "10",
 | 
						|
      "Flags": 0,
 | 
						|
      "Paths": [
 | 
						|
        [
 | 
						|
          {
 | 
						|
            "currency": "USD",
 | 
						|
            "issuer": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo",
 | 
						|
            "type": 48,
 | 
						|
            "type_hex": "0000000000000030"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "account": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo",
 | 
						|
            "currency": "USD",
 | 
						|
            "issuer": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo",
 | 
						|
            "type": 49,
 | 
						|
            "type_hex": "0000000000000031"
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      ],
 | 
						|
      "SendMax": "1112209",
 | 
						|
      "Sequence": 4,
 | 
						|
      "SigningPubKey": "02BC8C02199949B15C005B997E7C8594574E9B02BA2D0628902E0532989976CF9D",
 | 
						|
      "TransactionType": "Payment",
 | 
						|
      "TxnSignature": "304502204EE3E9D1B01D8959B08450FCA9E22025AF503DEF310E34A93863A85CAB3C0BC5022100B61F5B567F77026E8DEED89EED0B7CAF0E6C96C228A2A65216F0DC2D04D52083",
 | 
						|
      "date": 416447810,
 | 
						|
      "inLedger": 348860,
 | 
						|
      "ledger_index": 348860,
 | 
						|
      "hash": "F4AB442A6D4CBB935D66E1DA7309A5FC71C7143ED4049053EC14E3875B0CF9BF"
 | 
						|
    },
 | 
						|
    "meta": {
 | 
						|
      "AffectedNodes": [
 | 
						|
        {
 | 
						|
          "ModifiedNode": {
 | 
						|
            "FinalFields": {
 | 
						|
              "Account": "r9tGqzZgKxVFvzKFdUqXAqTzazWBUia8Qr",
 | 
						|
              "BookDirectory": "4627DFFCFF8B5A265EDBD8AE8C14A52325DBFEDAF4F5C32E5E03E788E09BB000",
 | 
						|
              "BookNode": "0000000000000000",
 | 
						|
              "Flags": 0,
 | 
						|
              "OwnerNode": "0000000000000000",
 | 
						|
              "Sequence": 58,
 | 
						|
              "TakerGets": {
 | 
						|
                "currency": "USD",
 | 
						|
                "issuer": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo",
 | 
						|
                "value": "5.648998"
 | 
						|
              },
 | 
						|
              "TakerPays": "6208248802"
 | 
						|
            },
 | 
						|
            "LedgerEntryType": "Offer",
 | 
						|
            "LedgerIndex": "3CFB3C79D4F1BDB1EE5245259372576D926D9A875713422F7169A6CC60AFA68B",
 | 
						|
            "PreviousFields": {
 | 
						|
              "TakerGets": {
 | 
						|
                "currency": "USD",
 | 
						|
                "issuer": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo",
 | 
						|
                "value": "5.65"
 | 
						|
              },
 | 
						|
              "TakerPays": "6209350000"
 | 
						|
            },
 | 
						|
            "PreviousTxnID": "8F571C346688D89AC1F737AE3B6BB5D976702B171CC7B4DE5CA3D444D5B8D6B4",
 | 
						|
            "PreviousTxnLgrSeq": 348433
 | 
						|
          }
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "ModifiedNode": {
 | 
						|
            "FinalFields": {
 | 
						|
              "Balance": {
 | 
						|
                "currency": "USD",
 | 
						|
                "issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
 | 
						|
                "value": "-0.001"
 | 
						|
              },
 | 
						|
              "Flags": 131072,
 | 
						|
              "HighLimit": {
 | 
						|
                "currency": "USD",
 | 
						|
                "issuer": "rMH4UxPrbuMa1spCBR98hLLyNJp4d8p4tM",
 | 
						|
                "value": "1"
 | 
						|
              },
 | 
						|
              "HighNode": "0000000000000000",
 | 
						|
              "LowLimit": {
 | 
						|
                "currency": "USD",
 | 
						|
                "issuer": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo",
 | 
						|
                "value": "0"
 | 
						|
              },
 | 
						|
              "LowNode": "0000000000000002"
 | 
						|
            },
 | 
						|
            "LedgerEntryType": "RippleState",
 | 
						|
            "LedgerIndex": "4BD1874F8F3A60EDB0C23F5BD43E07953C2B8741B226648310D113DE2B486F01",
 | 
						|
            "PreviousFields": {
 | 
						|
              "Balance": {
 | 
						|
                "currency": "USD",
 | 
						|
                "issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
 | 
						|
                "value": "0"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            "PreviousTxnID": "5B2006DAD0B3130F57ACF7CC5CCAC2EEBCD4B57AAA091A6FD0A24B073D08ABB8",
 | 
						|
            "PreviousTxnLgrSeq": 343703
 | 
						|
          }
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "ModifiedNode": {
 | 
						|
            "FinalFields": {
 | 
						|
              "Account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
 | 
						|
              "Balance": "9998898762",
 | 
						|
              "Flags": 0,
 | 
						|
              "OwnerCount": 3,
 | 
						|
              "Sequence": 5
 | 
						|
            },
 | 
						|
            "LedgerEntryType": "AccountRoot",
 | 
						|
            "LedgerIndex": "4F83A2CF7E70F77F79A307E6A472BFC2585B806A70833CCD1C26105BAE0D6E05",
 | 
						|
            "PreviousFields": {
 | 
						|
              "Balance": "9999999970",
 | 
						|
              "Sequence": 4
 | 
						|
            },
 | 
						|
            "PreviousTxnID": "53354D84BAE8FDFC3F4DA879D984D24B929E7FEB9100D2AD9EFCD2E126BCCDC8",
 | 
						|
            "PreviousTxnLgrSeq": 343570
 | 
						|
          }
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "ModifiedNode": {
 | 
						|
            "FinalFields": {
 | 
						|
              "Account": "r9tGqzZgKxVFvzKFdUqXAqTzazWBUia8Qr",
 | 
						|
              "Balance": "912695302618",
 | 
						|
              "Flags": 0,
 | 
						|
              "OwnerCount": 10,
 | 
						|
              "Sequence": 59
 | 
						|
            },
 | 
						|
            "LedgerEntryType": "AccountRoot",
 | 
						|
            "LedgerIndex": "F3E119AAA87AF3607CF87F5523BB8278A83BCB4142833288305D767DD30C392A",
 | 
						|
            "PreviousFields": {
 | 
						|
              "Balance": "912694201420"
 | 
						|
            },
 | 
						|
            "PreviousTxnID": "8F571C346688D89AC1F737AE3B6BB5D976702B171CC7B4DE5CA3D444D5B8D6B4",
 | 
						|
            "PreviousTxnLgrSeq": 348433
 | 
						|
          }
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "ModifiedNode": {
 | 
						|
            "FinalFields": {
 | 
						|
              "Balance": {
 | 
						|
                "currency": "USD",
 | 
						|
                "issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
 | 
						|
                "value": "-5.5541638883365"
 | 
						|
              },
 | 
						|
              "Flags": 131072,
 | 
						|
              "HighLimit": {
 | 
						|
                "currency": "USD",
 | 
						|
                "issuer": "r9tGqzZgKxVFvzKFdUqXAqTzazWBUia8Qr",
 | 
						|
                "value": "1000"
 | 
						|
              },
 | 
						|
              "HighNode": "0000000000000000",
 | 
						|
              "LowLimit": {
 | 
						|
                "currency": "USD",
 | 
						|
                "issuer": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo",
 | 
						|
                "value": "0"
 | 
						|
              },
 | 
						|
              "LowNode": "000000000000000C"
 | 
						|
            },
 | 
						|
            "LedgerEntryType": "RippleState",
 | 
						|
            "LedgerIndex": "FA1255C2E0407F1945BCF9351257C7C5C28B0F5F09BB81C08D35A03E9F0136BC",
 | 
						|
            "PreviousFields": {
 | 
						|
              "Balance": {
 | 
						|
                "currency": "USD",
 | 
						|
                "issuer": "rrrrrrrrrrrrrrrrrrrrBZbvji",
 | 
						|
                "value": "-5.5551658883365"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            "PreviousTxnID": "8F571C346688D89AC1F737AE3B6BB5D976702B171CC7B4DE5CA3D444D5B8D6B4",
 | 
						|
            "PreviousTxnLgrSeq": 348433
 | 
						|
          }
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "TransactionIndex": 0,
 | 
						|
      "TransactionResult": "tesSUCCESS"
 | 
						|
    },
 | 
						|
    "validated": true
 | 
						|
  }
 | 
						|
}
 |