-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0596db2
commit 9d2c932
Showing
11 changed files
with
68 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import Link from "~/components/link"; | ||
import TwoColumnsScroll from "~/components/sections/two-columns-scroll"; | ||
import Codeblock from "~/components/text/codeblock"; | ||
|
||
export default function YaciHosted() { | ||
return ( | ||
<TwoColumnsScroll | ||
sidebarTo="hosted" | ||
title="Mesh Hosted Yaci Devnet" | ||
leftSection={Left()} | ||
/> | ||
); | ||
} | ||
|
||
function Left() { | ||
let code = ""; | ||
code += `import { YaciProvider } from "@meshsdk/core";\n`; | ||
code += `\n`; | ||
code += `const blockchainProvider = new YaciProvider();\n`; | ||
code += `const params = await blockchainProvider.fetchProtocolParameters();\n`; | ||
code += `console.log(params);\n`; | ||
|
||
return ( | ||
<> | ||
<h3>Connect right away with Yaci Provider</h3> | ||
<p> | ||
Mesh has a hosted Yaci Devnet that you can connect to right away. You | ||
can use the following URL to connect to the hosted Yaci Devnet: | ||
</p> | ||
<Codeblock data={`https://yaci-node.meshjs.dev/api/v1/`} /> | ||
<h3>Import Yaci Provider</h3> | ||
<p> | ||
Import <code>YaciProvider</code> and start using it to interact with the | ||
Yaci Devnet. | ||
</p> | ||
<Codeblock data={code} /> | ||
<p> | ||
<Link href="/yaci/transactions/provider"> | ||
Learn more about Yaci Provider | ||
</Link>{" "} | ||
and learn more about{" "} | ||
<Link href="https://cloud.meshjs.dev/yaci">hosted Yaci Devnet</Link> | ||
</p> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters