Skip to content

Commit f0153d1

Browse files
committed
Fix mon example address
1 parent 3550bc8 commit f0153d1

File tree

5 files changed

+77
-18
lines changed

5 files changed

+77
-18
lines changed

book/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ await staker.init()
814814
// Building the transaction
815815
// ------------------------
816816

817-
const delegatorAddress = '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb'
817+
const delegatorAddress = '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb2'
818818

819819
// You can use the Chorus One validator ID or specify your own
820820
const validatorId = CHORUS_ONE_MONAD_VALIDATORS.mainnet

book/SUMMARY.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@
1717
- [Pooled Staking](build-your-staking-dapp/ethereum/pooled_staking_overview.md)
1818
- [Native Staking](build-your-staking-dapp/ethereum/native_staking_overview.md)
1919
- [Delegation Tracking](build-your-staking-dapp/ethereum/delegation-tracking.md)
20-
- [NEAR](build-your-staking-dapp/near/README.md)
21-
- [Overview](build-your-staking-dapp/near/overview.md)
22-
- [Methods](build-your-staking-dapp/near/methods.md)
20+
- [Hyperliquid](build-your-staking-dapp/hyperliquid/README.md)
21+
- [Overview](build-your-staking-dapp/hyperliquid/overview.md)
22+
- [Methods](build-your-staking-dapp/hyperliquid/methods.md)
2323
- [Monad](build-your-staking-dapp/monad/README.md)
2424
- [Overview](build-your-staking-dapp/monad/overview.md)
2525
- [Methods](build-your-staking-dapp/monad/methods.md)
26-
- [Polygon](build-your-staking-dapp/polygon/README.md)
27-
- [Overview](build-your-staking-dapp/polygon/overview.md)
28-
- [Methods](build-your-staking-dapp/polygon/methods.md)
26+
- [NEAR](build-your-staking-dapp/near/README.md)
27+
- [Overview](build-your-staking-dapp/near/overview.md)
28+
- [Methods](build-your-staking-dapp/near/methods.md)
2929
- [Polkadot (Substrate)](build-your-staking-dapp/polkadot-substrate/README.md)
3030
- [Overview](build-your-staking-dapp/polkadot-substrate/overview.md)
3131
- [Methods](build-your-staking-dapp/polkadot-substrate/methods.md)
32+
- [Polygon](build-your-staking-dapp/polygon/README.md)
33+
- [Overview](build-your-staking-dapp/polygon/overview.md)
34+
- [Methods](build-your-staking-dapp/polygon/methods.md)
3235
- [Solana](build-your-staking-dapp/solana/README.md)
3336
- [Overview](build-your-staking-dapp/solana/overview.md)
3437
- [Methods](build-your-staking-dapp/solana/methods.md)
35-
- [Hyperliquid](build-your-staking-dapp/hyperliquid/README.md)
36-
- [Overview](build-your-staking-dapp/hyperliquid/overview.md)
37-
- [Methods](build-your-staking-dapp/hyperliquid/methods.md)
3838
- [TON](build-your-staking-dapp/ton/README.md)
3939
- [Overview](build-your-staking-dapp/ton/overview.md)
4040
- [TON Pool](build-your-staking-dapp/ton/ton-pool/README.md)

book/build-your-staking-dapp/monad/methods.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ import { CHORUS_ONE_MONAD_VALIDATORS } from '@chorus-one/monad'
8282
const validatorId = CHORUS_ONE_MONAD_VALIDATORS.mainnet
8383

8484
const { tx } = await staker.buildUnstakeTx({
85-
delegatorAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
85+
delegatorAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb2',
8686
validatorId,
8787
amount: '500', // 500 MON
8888
withdrawalId: 0 // Use ID 0 to track this withdrawal
@@ -127,7 +127,7 @@ import { CHORUS_ONE_MONAD_VALIDATORS } from '@chorus-one/monad'
127127
const validatorId = CHORUS_ONE_MONAD_VALIDATORS.mainnet
128128

129129
const { tx } = await staker.buildWithdrawTx({
130-
delegatorAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
130+
delegatorAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb2',
131131
validatorId,
132132
withdrawalId: 0
133133
})
@@ -165,7 +165,7 @@ import { CHORUS_ONE_MONAD_VALIDATORS } from '@chorus-one/monad'
165165
const validatorId = CHORUS_ONE_MONAD_VALIDATORS.mainnet
166166

167167
const { tx } = await staker.buildCompoundTx({
168-
delegatorAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
168+
delegatorAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb2',
169169
validatorId
170170
})
171171
```
@@ -205,7 +205,7 @@ import { CHORUS_ONE_MONAD_VALIDATORS } from '@chorus-one/monad'
205205
const validatorId = CHORUS_ONE_MONAD_VALIDATORS.mainnet
206206

207207
const { tx } = await staker.buildClaimRewardsTx({
208-
delegatorAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
208+
delegatorAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb2',
209209
validatorId
210210
})
211211
```
@@ -260,7 +260,7 @@ const validatorId = CHORUS_ONE_MONAD_VALIDATORS.mainnet
260260

261261
const delegatorInfo = await staker.getDelegator({
262262
validatorId,
263-
delegatorAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb'
263+
delegatorAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb2'
264264
})
265265
```
266266

@@ -309,7 +309,7 @@ const validatorId = CHORUS_ONE_MONAD_VALIDATORS.mainnet
309309

310310
const withdrawalRequest = await staker.getWithdrawalRequest({
311311
validatorId,
312-
delegatorAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
312+
delegatorAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb2',
313313
withdrawalId: 0
314314
})
315315
```
@@ -383,7 +383,7 @@ To sign a transaction, you need to provide a signer instance, the signer's addre
383383
```javascript
384384
const { signedTx } = await staker.sign({
385385
signer,
386-
signerAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
386+
signerAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb2',
387387
tx
388388
})
389389
```

book/build-your-staking-dapp/monad/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ await signer.init()
156156

157157
const { signedTx } = await staker.sign({
158158
signer,
159-
signerAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
159+
signerAddress: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb2',
160160
tx
161161
})
162162
```

book/build-your-staking-dapp/polygon/methods.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,65 @@ const { signedTx } = await staker.sign({
531531

532532
---
533533

534+
## broadcast
535+
536+
### Description
537+
538+
The `broadcast` method broadcasts a signed transaction to the Polygon network.
539+
540+
### How to Use
541+
542+
Pass the signed transaction hex string returned by the `sign` method.
543+
544+
### Parameters
545+
546+
- **signedTx** (Hex): The signed transaction to broadcast
547+
548+
### Example
549+
550+
```javascript
551+
const { txHash } = await staker.broadcast({ signedTx })
552+
553+
console.log('Transaction hash:', txHash)
554+
```
555+
556+
- [Read more in the API Reference](../../docs/classes/polygon_src.PolygonStaker.md#broadcast)
557+
558+
---
559+
560+
## getTxStatus
561+
562+
### Description
563+
564+
The `getTxStatus` method retrieves the status of a transaction using the transaction hash.
565+
566+
### How to Use
567+
568+
Provide the transaction hash received from the `broadcast` method.
569+
570+
### Parameters
571+
572+
- **txHash** (Hex): The transaction hash to query
573+
574+
### Returns
575+
576+
Returns the transaction status including:
577+
578+
- **status** (string): Transaction status (`'success'`, `'failure'`, or `'unknown'`)
579+
- **receipt** (object): The full transaction receipt (when available)
580+
581+
### Example
582+
583+
```javascript
584+
const txStatus = await staker.getTxStatus({ txHash })
585+
586+
console.log('Transaction status:', txStatus.status)
587+
```
588+
589+
- [Read more in the API Reference](../../docs/classes/polygon_src.PolygonStaker.md#gettxstatus)
590+
591+
---
592+
534593
## Exported Constants
535594

536595
The `@chorus-one/polygon` package exports the following constants:

0 commit comments

Comments
 (0)