The address that identifies this Authority.
For Ed25519/ProgramExec: the public key bytes. For Secp256k1: the 20-byte Ethereum address derived from the public key. For Secp256r1: the compressed public key bytes.
String representation of the authority address.
For Ed25519/ProgramExec: base58 encoded. For Secp256k1/Secp256r1: unprefixed hex.
This is the ID for the Authority.
This would usually the data that represents the Authority
For TokenBasedAuthority, it is either a Ed25519 or Secp256k1 Public Key.
For SessionBasedAuthority, It could be public key bytes, groth16 proof etc.
Use address instead
33-byte Secp256r1 compressed publickey bytes
This is the Signer ID for the Authority.
This would usually the public key bytes that identifies the signer on behalf of the authority,
For TokenBasedAuthority, it is either a Ed25519 or Secp256k1 Public Key.
For SessionBasedAuthority, it is the Session Key.
Use signerAddress instead
The address that identifies the signer acting on behalf of this Authority.
For TokenBasedAuthority: same as address. For SessionBasedAuthority: the session key bytes.
String representation of the signerAddress.
For TokenBasedAuthority: same as addressString. For SessionBasedAuthority: base58 encoded session key.
Creates an AddAuthority Instructon
The parameters required to create the Swig instruction.
The ID of the role signing the instruction.
Actions of the new authority
CreateAuthorityInfo of new Authority to add
The public key of the swig payer.
The public key of the swig
AddAuthority Instruction.
Creates a CloseSwig instruction that closes the swig account and
wallet address PDA, transferring all remaining lamports to the destination.
Requires All or ManageAuthority permission.
Both the swig account and wallet address PDA must have only rent-exempt
minimum lamports (no excess SOL).
The account is resized to 1 byte with a ClosedSwigAccount discriminator
to prevent rehydration attacks.
Creates a CloseTokenAccount instruction that closes token accounts
owned by the swig wallet address, transferring rent to the destination.
Requires All or ManageAuthority permission.
Token accounts must have zero balance before closing.
Check if the given address bytes match this authority's address.
Creates an RemoveAuthority Instructon
The parameters required for RemoveAuthority instruction.
The public key of the swig payer.
The ID of the role signing the instruction.
ID of the role to remove
The public key of the swig
RemoveAuthority Instruction.
Creates a Sign instruction for signing provided instructions with the Swig
The parameters required to create the Swig instruction.
The instructions the Swig is to sign.
The public key of the swig payer.
The ID of the role signing the instruction.
The public key of the swig
Sign Instruction.
Creates a Sign instruction for signing provided instructions with the Swig
The parameters required to create the Swig instruction.
The instructions the Swig is to sign.
The public key of the swig payer.
The ID of the role signing the instruction.
The public key of the swig
Sign Instruction.
Creates an UpdateAuthority Instructon
The parameters required for RemoveAuthority instruction.
The public key of the swig payer.
The ID of the role signing the instruction.
ID of the role to remove
The public key of the swig account
RemoveAuthority Instruction.
Indicates if Authority is Session-based or not.
trueif Authority is Session-based