Valentin Madrid e39cdd2f57 add description for seahorse sol transfer преди 2 години
..
migrations 3f59790e93 add seahorse transfer sol example преди 2 години
programs 60e55ad6fd update function name to transfer with cpi преди 2 години
programs_py 60e55ad6fd update function name to transfer with cpi преди 2 години
tests 9112548d1a change spelling to mockReceiverAccount преди 2 години
.gitignore 3f59790e93 add seahorse transfer sol example преди 2 години
.prettierignore 3f59790e93 add seahorse transfer sol example преди 2 години
Anchor.toml 3f59790e93 add seahorse transfer sol example преди 2 години
Cargo.toml 3f59790e93 add seahorse transfer sol example преди 2 години
README.md e39cdd2f57 add description for seahorse sol transfer преди 2 години
package.json 3f59790e93 add seahorse transfer sol example преди 2 години
tsconfig.json 3f59790e93 add seahorse transfer sol example преди 2 години

README.md

Transfer SOL with Seahorse

Sadly, you can't send SOL(lamports) to another SystemAccount (Public Key) with Seahorse. That's why this Seahorse example looks a little different than the Anchor and Native ones. Here, we initialize a Mock PDA account where we send SOL to using transferLamports, which invokes a CPI with the System Program.