@ordanetwork/sdk 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -386,7 +386,9 @@ await orda.offRamp.waitForCompletion(transactionId, options);
|
|
|
386
386
|
await orda.onRamp.requestQuote({
|
|
387
387
|
fromCurrency: string,
|
|
388
388
|
intent: Intent,
|
|
389
|
-
recipientId: string
|
|
389
|
+
recipientId: string,
|
|
390
|
+
taxId: string, // required: payer CPF/CNPJ
|
|
391
|
+
taxIdCountry: string // required: ISO 3166-1 alpha-3, e.g. 'BRA'
|
|
390
392
|
});
|
|
391
393
|
|
|
392
394
|
// OR request on-ramp quote with inline settlement (no recipient needed)
|
|
@@ -397,7 +399,9 @@ await orda.onRamp.requestQuote({
|
|
|
397
399
|
toChain: string,
|
|
398
400
|
toToken: string,
|
|
399
401
|
toAddress: string
|
|
400
|
-
}
|
|
402
|
+
},
|
|
403
|
+
taxId: string, // required: payer CPF/CNPJ
|
|
404
|
+
taxIdCountry: string // required: ISO 3166-1 alpha-3, e.g. 'BRA'
|
|
401
405
|
});
|
|
402
406
|
|
|
403
407
|
// Get on-ramp status
|
|
@@ -590,6 +594,8 @@ async function main() {
|
|
|
590
594
|
value: '100.00',
|
|
591
595
|
},
|
|
592
596
|
recipientId: recipient.recipientId,
|
|
597
|
+
taxId: '11144477735',
|
|
598
|
+
taxIdCountry: 'BRA',
|
|
593
599
|
});
|
|
594
600
|
console.log('PIX payment key:', onRampQuote.depositInstructions.pixKey);
|
|
595
601
|
|
|
@@ -605,6 +611,8 @@ async function main() {
|
|
|
605
611
|
toToken: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913', // USDC
|
|
606
612
|
toAddress: '0xRecipientAddress',
|
|
607
613
|
},
|
|
614
|
+
taxId: '11144477735',
|
|
615
|
+
taxIdCountry: 'BRA',
|
|
608
616
|
});
|
|
609
617
|
console.log('PIX payment key:', inlineOnRampQuote.depositInstructions.pixKey);
|
|
610
618
|
}
|