Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
nhanphan committed Jun 11, 2024
1 parent 091ab15 commit 84b712b
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 @@ -38,22 +38,22 @@ A JavaScript library for getting assets and collections from DAS in the Mpl Core
});
// Fetch assets by authority
const assetsByAuthority = await das.fetchAssetsByAuthority(umi, {
const assetsByAuthority = await das.getAssetsByAuthority(umi, {
authority: publicKey('<authorityPublicKey>'),
});
// Fetch assets by owner
const assetsByOwner = await das.fetchAssetsByOwner(umi, {
const assetsByOwner = await das.getAssetsByOwner(umi, {
owner: publicKey('<ownerPublicKey>'),
});
// Fetch assets by collection
const assetsByCollection = await das.fetchAssetsByCollection(umi, {
const assetsByCollection = await das.getAssetsByCollection(umi, {
collection: publicKey('<collectionPublicKey>'),
});
// Fetch collections by authority
const collectionsByUpdateAuthority = await das.fetchCollectionsByUpdateAuthority(umi, {
const collectionsByUpdateAuthority = await das.getCollectionsByUpdateAuthority(umi, {
updateAuthority: publicKey('<updateAuthorityPublicKey>'),
});
```
Expand Down

0 comments on commit 84b712b

Please sign in to comment.