sendfun-sdk 3.0.0

Rust SDK for send.fun programs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use solana_address::Address;

use crate::constants::ATA_PROGRAM_ID;

#[must_use]
pub fn find_associated_token_pda(
	wallet: &Address,
	mint: &Address,
	token_program: &Address,
) -> (Address, u8) {
	Address::find_program_address(
		&[wallet.as_ref(), token_program.as_ref(), mint.as_ref()],
		&ATA_PROGRAM_ID,
	)
}