Skip to content
SDK-Only Method: getPaymentInstruction is not a JSON-RPC method on the server (a raw JSON-RPC request for it returns HTTP 405). The TypeScript SDK calls the server’s estimateTransactionFee method, uses the returned payment_address and signer_pubkey, and builds the token transfer instruction locally. The estimateTransactionFee method must be enabled on the Kora server.

​TypeScript SDK Usage

​Parameters

ParameterTypeRequiredDescription
transactionstringYesBase64-encoded transaction to price
fee_tokenstringYesMint of the token the user pays the fee in
source_walletstring or TransactionSignerYesWallet that makes the token payment. Pass the TransactionSigner to keep its signer identity on the payment instruction
token_program_idstringNoToken program of fee_token. Defaults to the Token Program; use the Token-2022 program address for Token-2022 mints
signer_keystringNoPublic key of the Kora signer to use, passed to estimateTransactionFee. Use the same value for signTransaction
sig_verifybooleanNoPassed to estimateTransactionFee. Defaults to false

​Response Structure

The method returns a payment instruction object with the following structure: