Coda by Ian Macalinao
Preparing search index...
@solana-programs/kamino-lending
getAddRewardsInstructionAsync
Function getAddRewardsInstructionAsync
getAddRewardsInstructionAsync
<
TAccountPayer
extends
InstructionSignerInput
,
TAccountFarmState
extends
InstructionAccountInput
,
TAccountRewardMint
extends
InstructionAccountInput
,
TAccountRewardVault
extends
InstructionAccountInput
,
TAccountFarmVaultsAuthority
extends
InstructionAccountInput
,
TAccountPayerRewardTokenAta
extends
InstructionAccountInput
,
TAccountScopePrices
extends
InstructionAccountInput
,
TAccountTokenProgram
extends
InstructionAccountInput
,
TProgramAddress
extends
Address
=
Address
<
"FarmsPZpWu9i7Kky8tPN37rs2TpmMrAZrC7S7vJa91Hr"
>
,
>
(
input
:
AddRewardsAsyncInput
<
TAccountPayer
,
TAccountFarmState
,
TAccountRewardMint
,
TAccountRewardVault
,
TAccountFarmVaultsAuthority
,
TAccountPayerRewardTokenAta
,
TAccountScopePrices
,
TAccountTokenProgram
,
>
,
config
?:
{
programAddress
?:
TProgramAddress
|
{
address
:
TProgramAddress
}
;
}
,
)
:
Promise
<
AddRewardsInstruction
<
TProgramAddress
,
ResolvedInstructionAccountMeta
<
TAccountPayer
,
InstructionAccountInputAddress
<
TAccountPayer
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountFarmState
,
InstructionAccountInputAddress
<
TAccountFarmState
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountRewardMint
,
InstructionAccountInputAddress
<
TAccountRewardMint
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountRewardVault
,
InstructionAccountInputAddress
<
TAccountRewardVault
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountFarmVaultsAuthority
,
InstructionAccountInputAddress
<
TAccountFarmVaultsAuthority
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountPayerRewardTokenAta
,
InstructionAccountInputAddress
<
TAccountPayerRewardTokenAta
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountScopePrices
,
InstructionAccountInputAddress
<
TAccountScopePrices
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountTokenProgram
,
InstructionAccountInputAddress
<
TAccountTokenProgram
>
,
>
,
[
]
,
>
,
>
Type Parameters
TAccountPayer
extends
InstructionSignerInput
TAccountFarmState
extends
InstructionAccountInput
TAccountRewardMint
extends
InstructionAccountInput
TAccountRewardVault
extends
InstructionAccountInput
TAccountFarmVaultsAuthority
extends
InstructionAccountInput
TAccountPayerRewardTokenAta
extends
InstructionAccountInput
TAccountScopePrices
extends
InstructionAccountInput
TAccountTokenProgram
extends
InstructionAccountInput
TProgramAddress
extends
Address
=
Address
<
"FarmsPZpWu9i7Kky8tPN37rs2TpmMrAZrC7S7vJa91Hr"
>
Parameters
input
:
AddRewardsAsyncInput
<
TAccountPayer
,
TAccountFarmState
,
TAccountRewardMint
,
TAccountRewardVault
,
TAccountFarmVaultsAuthority
,
TAccountPayerRewardTokenAta
,
TAccountScopePrices
,
TAccountTokenProgram
,
>
Optional
config
:
{
programAddress
?:
TProgramAddress
|
{
address
:
TProgramAddress
}
}
Returns
Promise
<
AddRewardsInstruction
<
TProgramAddress
,
ResolvedInstructionAccountMeta
<
TAccountPayer
,
InstructionAccountInputAddress
<
TAccountPayer
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountFarmState
,
InstructionAccountInputAddress
<
TAccountFarmState
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountRewardMint
,
InstructionAccountInputAddress
<
TAccountRewardMint
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountRewardVault
,
InstructionAccountInputAddress
<
TAccountRewardVault
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountFarmVaultsAuthority
,
InstructionAccountInputAddress
<
TAccountFarmVaultsAuthority
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountPayerRewardTokenAta
,
InstructionAccountInputAddress
<
TAccountPayerRewardTokenAta
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountScopePrices
,
InstructionAccountInputAddress
<
TAccountScopePrices
>
,
>
,
ResolvedInstructionAccountMeta
<
TAccountTokenProgram
,
InstructionAccountInputAddress
<
TAccountTokenProgram
>
,
>
,
[
]
,
>
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Coda by Ian Macalinao
Loading...