Skip to content

Commit

Permalink
Update README.md (#3651)
Browse files Browse the repository at this point in the history
  • Loading branch information
intls authored Dec 2, 2024
1 parent 2d17620 commit 96e38b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ import {
} from '@solana/web3.js';

const api = createSolanaRpcApi<GetAccountInfoApi & GetMultipleAccountsApi>(DEFAULT_RPC_CONFIG);
const transport = createDefaultRpcTransport({ url: 'http:127.0.0.1:8899' });
const transport = createDefaultRpcTransport({ url: 'http://127.0.0.1:8899' });

const rpc = createRpc({ api, transport });
```
Expand Down Expand Up @@ -1027,7 +1027,7 @@ export const getMyTokenCodec = (): Codec<MyTokenArgs, MyToken> =>
combineCodec(getMyTokenEncoder(), getMyTokenDecoder());
```

You can read me about codecs in [the official Codec documentation](https://github.com/solana-labs/solana-web3.js/blob/master/packages/codecs/README.md).
You can read more about codecs in [the official Codec documentation](https://github.com/solana-labs/solana-web3.js/blob/master/packages/codecs/README.md).

## Type-Safety

Expand Down Expand Up @@ -1166,7 +1166,7 @@ const signature = rpc.requestAirdrop(myAddress, airdropAmount).send();

## Compatibility Layer

You will have noticed by now that web3.js is a complete and total breaking change from the 1.x line. We want to provide you with a strategy for interacting with 1.x APIs while building your application using 2.0. You need a tool for commuting between 1.x and 2.0 data types.
You will have noticed by now that web3.js is a complete and total breaking change from the 1.x line. We want to provide you with a strategy for interacting with 1.x APIs while building your application using 2.0. You need a tool for converting between 1.x and 2.0 data types.

The `@solana/compat` library allows for interoperability between functions and class objects from the legacy library - such as `VersionedTransaction`, `PublicKey`, and `Keypair` - and functions and types of the new library - such as `Address`, `Transaction`, and `CryptoKeyPair`.

Expand Down Expand Up @@ -1264,7 +1264,7 @@ On top of instruction builders, these clients offer a variety of utilities such
- Account helpers — e.g. `fetchAddressLookupTable`.
- PDA helpers — e.g. `findAddressLookupTablePda`, `fetchAddressLookupTableFromSeeds`.
- Defined types and their codecs — e.g. `NonceState`, `getNonceStateCodec`.
- Program helpers — e.g. `SYSTEM_PROGRAM_ADDRESS`, `SystemAccount` enum, `SystemAccount` enum, `identifySystemInstruction`.
- Program helpers — e.g. `SYSTEM_PROGRAM_ADDRESS`, `SystemAccount` enum, `identifySystemInstruction`.
- And much more!

Here’s another example that fetches an `AddressLookupTable` PDA from its seeds.
Expand Down

0 comments on commit 96e38b8

Please sign in to comment.