Readonly
actionsReadonly
authorityReadonly
swigReadonly
swigcheck if the role can manage authorities
booean
Check if the role has the pemission to spend sol at all, or more than the limit if amount is provided
Optional
amount: bigintThe amount of role should be able to spend
boolean
Check if the role can spend any amount of SOL
boolean
Check if the role has the pemission to spend a given token at all, or more than the limit if amount is provided
token mint
Optional
amount: bigintamount the role should be able to spend
Check if the role has the permission to spend any amount of the given token
token mint
boolean
Check if the authority can use a program
Program Id of the program to check
Check if the role has root permission
boolean
Gets the spend limit for a SOL. Return null if the spend is uncapped.
bigint
| null
Get Token SpendController for the actions
Token mint
SpendController
Gets the spend limit for a given token mint. Return null if the spend is uncapped.
Token mint
bigint
| null
Static
from
role id