Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/ethereum-tooling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ Configure [Scaffold-ETH 2](https://github.com/scaffold-eth/scaffold-eth-2) to de
solidity: "0.8.20", // Ensure to specify the correct Solidity version
networks: {
mainnet: {
url: process.env.CHAINSTACK_MAINNET_ENDPOINT || `https://eth-mainnet.alchemyapi.io/v2/${providerApiKey}`, // Use the Chainstack mainnet endpoint
url: process.env.CHAINSTACK_MAINNET_ENDPOINT || `https://eth-mainnet.g.alchemy.com/v2/${providerApiKey}`, // Use the Chainstack mainnet endpoint
// accounts: [process.env.DEPLOYER_PRIVATE_KEY_MAINNET as string], // Mainnet private key
},
sepolia: {
Expand Down
20 changes: 11 additions & 9 deletions docs/sui-tooling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,14 @@ The [Sui TypeScript SDK](https://github.com/MystenLabs/sui/tree/main/sdk/typescr
### Installation

```bash
npm install @mysten/sui.js
npm install @mysten/sui
```

### Basic usage

<CodeGroup>
```typescript Connection
import { SuiClient, getFullnodeUrl } from '@mysten/sui.js/client';
import { SuiClient, getFullnodeUrl } from '@mysten/sui/client';

// Connect to your Chainstack node
const client = new SuiClient({
Expand All @@ -230,7 +230,7 @@ npm install @mysten/sui.js
```

```typescript Query Objects
import { SuiClient } from '@mysten/sui.js/client';
import { SuiClient } from '@mysten/sui/client';

const client = new SuiClient({
url: 'YOUR_CHAINSTACK_ENDPOINT'
Expand All @@ -247,24 +247,26 @@ npm install @mysten/sui.js
```

```typescript Send Transaction
import { SuiClient } from '@mysten/sui.js/client';
import { TransactionBlock } from '@mysten/sui.js/transactions';
import { Ed25519Keypair } from '@mysten/sui.js/keypairs/ed25519';
import { SuiClient } from '@mysten/sui/client';
import { Transaction } from '@mysten/sui/transactions';
import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';

const client = new SuiClient({
url: 'YOUR_CHAINSTACK_ENDPOINT'
});

const keypair = Ed25519Keypair.generate();
const tx = new TransactionBlock();
const tx = new Transaction();
const objectId = '0x<OBJECT_ID>'; // Replace with your object ID
const recipient = '0x<RECIPIENT_ADDRESS>'; // Replace with recipient address

// Add transaction commands
tx.transferObjects([objectId], recipient);
Comment thread
coderabbitai[bot] marked this conversation as resolved.

// Sign and execute
const result = await client.signAndExecuteTransactionBlock({
const result = await client.signAndExecuteTransaction({
Comment thread
coderabbitai[bot] marked this conversation as resolved.
signer: keypair,
transactionBlock: tx,
transaction: tx,
});
```
</CodeGroup>
Expand Down
2 changes: 1 addition & 1 deletion docs/zksync-era-tooling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Configure [Hardhat](https://docs.zksync.io/build/tooling/hardhat/hardhat-zksync)
ethNetwork: "sepolia",
zksync: true,
verifyURL:
"https://zksync2-testnet-explorer.zksync.dev/contract_verification",
"https://explorer.sepolia.era.zksync.dev/contract_verification",
},
},
solidity: {
Expand Down