@ar.io/sdk 2.5.1-alpha.2 → 2.5.1-alpha.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 CHANGED
@@ -66,6 +66,7 @@ This is the home of [ar.io] SDK. This SDK provides functionality for interacting
66
66
  - [`getPrimaryNames({ cursor, limit, sortBy, sortOrder })`](#getprimarynames-cursor-limit-sortby-sortorder-)
67
67
  - [`getPrimaryName({ name, address })`](#getprimaryname-name-address-)
68
68
  - [`requestPrimaryName({ name, address })`](#requestprimaryname-name-address-)
69
+ - [`getPrimaryNameRequest({ initiator })`](#getprimarynamerequest-initiator-)
69
70
  - [`redelegateStake({ target, source, stakeQty, vaultId })`](#redelegatestake-target-source-stakeqty-vaultid-)
70
71
  - [`getRedelegationFee({ address })`](#getredelegationfee-address-)
71
72
  - [Configuration](#configuration)
@@ -1593,6 +1594,31 @@ const { id: txId } = await io.requestPrimaryName({
1593
1594
  });
1594
1595
  ```
1595
1596
 
1597
+ #### `getPrimaryNameRequest({ initiator })`
1598
+
1599
+ Retrieves the primary name request for a a wallet address.
1600
+
1601
+ ```typescript
1602
+ const io = IO.init();
1603
+ const request = await io.getPrimaryNameRequest({
1604
+ initiator: 't4Xr0_J4Iurt7caNST02cMotaz2FIbWQ4Kbj616RHl3',
1605
+ });
1606
+ ```
1607
+
1608
+ <details>
1609
+ <summary>Output</summary>
1610
+
1611
+ ```json
1612
+ {
1613
+ "initiator": "t4Xr0_J4Iurt7caNST02cMotaz2FIbWQ4Kbj616RHl3",
1614
+ "name": "arns",
1615
+ "startTimestamp": 1728067635857,
1616
+ "endTimestamp": 1735843635857
1617
+ }
1618
+ ```
1619
+
1620
+ </details>
1621
+
1596
1622
  #### `redelegateStake({ target, source, stakeQty, vaultId })`
1597
1623
 
1598
1624
  Redelegates the stake of a specific address to a new gateway. Vault ID may be optionally included in order to redelegate from an existing withdrawal vault. The redelegation fee is calculated based on the fee rate and the stake amount. Users are allowed one free redelegation every seven epochs. Each additional redelegation beyond the free redelegation will increase the fee by 10%, capping at a 60% redelegation fee.