
이번에는 작성한 솔라나 프로그램을 간단한 웹 페이지에서 호출 하는 방법을 만들어 봅시다. 웹페이지는 react typescript로 작성할 겁니다. 작업폴더 develop폴더 안에 app 폴더가 있습니다. 해당 폴더에 react 프로젝트를 만듭니다. cd app npx create-react-app test-web --template=typescript 프로젝트 생성 후 잘 동작하는지 실행해 봅시다. cd test-web npm start 우선 솔라나 지갑 연동을 위한 모듈을 설치 할 겁니다. yarn add @solana/wallet-adapter-base yarn add @solana/wallet-adapter-react yarn add @solana/wallet-adapter-react-ui yar..

나만의 토큰을 만들고 솔라나 프로그램 환경 설정도 했으니 이제 솔라나 프로그램 하나를 만들어 봅시다. 솔라나 프로그램을 통해서 내가 만든 토큰을 SOL로 살 수 있도록 할 겁니다. programs/develop/src/lib.rs 소스 코드] use anchor_lang::prelude::*; use anchor_lang::solana_program::pubkey::Pubkey; use spl_token::instruction::transfer; use anchor_lang::solana_program::program::invoke; use anchor_lang::solana_program::program::invoke_signed; use anchor_spl::{token::TokenAccount, t..
- Total
- Today
- Yesterday
- c++
- echo server
- UDP 클라이언트
- 윈도으 템플릿
- TCP 서버
- C#
- UDP Echo Server
- UDP 소켓 프로그램
- 프로그램
- uwp textbox
- 큐 리스트
- program
- echo tcp client
- 에코서버
- 채팅
- tcp echo server
- 에코 클라이언트
- Visual Studio
- SOL
- uwp
- 토큰
- C
- uwp textblock
- 비주얼 스튜디오
- C++ 쓰레드
- UDP Socket
- SPL-TOKEN
- 솔라나
- uwp button
- _beginthreadex 예제
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |