Skip to content

Transfer SPL(WSOL) token via third party escrow wallet. Demonstrated use of PDA and SPL token.

License

Notifications You must be signed in to change notification settings

pingp76/wu-pay-spl

Repository files navigation

Wu-Pay SPL

Transfer SPL(WSOL) token via third party escrow wallet. Demonstrated use of PDA and SPL token.

This source code is primarily based on follwing online tutorial:

It is inteded solely for educational purpose and not for commercial use. The use of this code is subject to the terms and conditions as outlined by the original source material from their website. The author of this code bears no liability for any unintended consequences that arise from its use.

Enviornment setup

Install Anchor

Solana enviornment configuration

solana-install init 1.16.25

Install SPL Typescript lib

npm install @solana/spl-token

Make sure the Cargo.toml in programs/wu-pay-spl/Cargo.toml including;

anchor-lang = "0.28.0"
anchor-spl = "0.28.0"
solana-program = "1.16.0"
ahash = "=0.8.6"

Run Test

Run test on local solana validator. Keep validator running after the test case is terminated.

anchor test --detach

View validator logs

solana logs

About

Transfer SPL(WSOL) token via third party escrow wallet. Demonstrated use of PDA and SPL token.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published