setFeePayer

open fun setFeePayer(encodedTx: String, feePayer: String): String

Adds fee payer to the given transaction and returns the updated transaction.

Return

base64 encoded Solana transaction. Null if an error occurred.

Parameters

encodedTx

base64 encoded Solana transaction.

feePayer

fee payer account address. Must be a base58 encoded public key. It must NOT be in the account list yet.