1
vote
In what senario the receiver is same as the signer in a transfer?
The receiver's signature is required for claimed_locked because it ensures ownership and authorization. In cases like staking or vesting, funds are locked, and only the rightful owner (receiver) can ...
1
vote
How can I close a token account AND transfer all my sol to another wallet within the same transaction?
This is possible. You can combine the two instructions(close SPL Token account and transfer SOL) in one transaction, and the runtime will execute them atomically.
async function closeAndTransferSol() {...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
transfer × 189spl-token × 53
transactions × 46
solana-program × 30
web3.js × 25
anchor × 20
sol × 17
token-2022 × 15
pda × 14
transaction × 14
wallet × 12
rust × 10
token × 10
spl-token-program × 9
spl × 8
phantom × 8
send-transaction × 8
nft × 7
cpi × 7
mint × 7
solana-cli × 7
transfer-checked × 7
account × 6
instructions × 6
python × 5