This is my current code.
CODE:
from solana.rpc.api import Client
from solana.keypair import Keypair
from solana.transaction import Transaction
from solana.system_program import TransferParams, transfer
LAMPORT_PER_SOL = 1000000000
client = Client(devnetrpc)
transaction = Transaction().add(transfer(TransferParams(
from_pubkey=sender.public_key,
to_pubkey=receiver.public_key,
lamports=int(0.01*LAMPORT_PER_SOL))
))
response = client.send_transaction(transaction, sender)
print (response)
send_signature = response["result"]
status = client.confirm_transaction(send_signature)
print (status)
This will send a legacy transaction. I want to add priority fee to the transaction. Any sample code is appreciated.