Swig TS — API References
Preparing search index...
@swig-wallet/classic
Module @swig-wallet/classic - v0.2.0-beta.6
Swig TS SDK
This module hosts the source for interacting with the Swig program in typescript.
Enumerations
AuthorityType
NumericType
Permission
ProgramScopeType
SwigAccountDiscriminator
SwigInstructionDiscriminator
Classes
Actions
ActionsBuilder
Authority
Ed25519Authority
Ed25519SessionAuthority
Role
Secp256k1Authority
Secp256k1SessionAuthority
SessionBasedAuthority
SpendController
Swig
SwigInstructionV1
TokenBasedAuthority
Interfaces
AuthorityInstruction
CreateAuthorityInfo
Ed25519BasedAuthority
Secp256k1BasedAuthority
Type Aliases
AccountMetaLike
AccountPayload
ActionHeader
ActionPayload
AddAuthorityV1AuthorityPayload
AddAuthorityV1AuthorityPayloadArgs
AddAuthorityV1BaseAccountMetas
AddAuthorityV1BaseAccountMetasWithAuthority
AddAuthorityV1InstructionAccounts
AddAuthorityV1InstructionData
AddAuthorityV1InstructionDataArgs
AuthorityCreateInfo
CompactInstruction
CreateSessionV1InstructionAuthorityPayload
CreateSessionV1InstructionAuthorityPayloadArgs
CreateSessionV1InstructionData
CreateSessionV1InstructionDataArgs
CreateV1BaseAccountMetas
CreateV1InstructionAccounts
CreateV1InstructionData
CreateV1InstructionDataArgs
Ed25519SessionAuthorityData
InstructionDataOptions
Position
ProgramLimit
ProgramScope
RemoveAuthorityV1AuthorityPayloadArgs
RemoveAuthorityV1BaseAccountMetas
RemoveAuthorityV1BaseAccountMetasWithAuthority
RemoveAuthorityV1InstructionAccounts
RemoveAuthorityV1InstructionData
RemoveAuthorityV1InstructionDataArgs
ReplaceAuthorityV1BaseAccountMetas
ReplaceAuthorityV1BaseAccountMetasWithAuthority
ReplaceAuthorityV1InstructionAccounts
Secp256k1CreateSessionAuthorityData
Secp256k1SessionAuthorityData
Secp256k1SessionAuthorityDataArgs
SessionBasedRole
SigningFn
SigningResult
SignV1BaseAccountMetas
SignV1BaseAccountMetasWithAuthority
SignV1InstructionAccounts
SignV1InstructionData
SignV1InstructionDataArgs
SolLimit
SolRecurringLimit
SpendControl
StakeLimit
StakeRecurringLimit
SubAccount
SubAccountCreateV1BaseAccountMetas
SubAccountCreateV1BaseAccountMetasWithAuthority
SubAccountCreateV1BaseAccountMetasWithSystemProgram
SubAccountCreateV1InstructionAccounts
SubAccountCreateV1InstructionData
SubAccountCreateV1InstructionDataArgs
SubAccountSignV1BaseAccountMetas
SubAccountSignV1BaseAccountMetasWithAuthority
SubAccountSignV1BaseAccountMetasWithSystemProgram
SubAccountSignV1InstructionAccounts
SubAccountSignV1InstructionData
SubAccountSignV1InstructionDataArgs
SubAccountToggleV1BaseAccountMetas
SubAccountToggleV1BaseAccountMetasWithAuthority
SubAccountToggleV1BaseAccountMetasWithSystemProgram
SubAccountToggleV1InstructionAccounts
SubAccountToggleV1InstructionData
SubAccountToggleV1InstructionDataArgs
SubAccountWithdrawV1BaseAccountMetas
SubAccountWithdrawV1BaseInstructionAccounts
SubAccountWithdrawV1InstructionData
SubAccountWithdrawV1InstructionDataArgs
SubAccountWithdrawV1SolAccountMetas
SubAccountWithdrawV1SolAccountMetasWithAuthority
SubAccountWithdrawV1SolInstructionAccounts
SubAccountWithdrawV1TokenAccountMetas
SubAccountWithdrawV1TokenAccountMetasWithAuthority
SubAccountWithdrawV1TokenInstructionAccounts
SwigAccount
SwigSubAccount
TokenBasedRole
TokenLimit
TokenRecurringLimit
Variables
ACTION_HEADER_LENGTH
Ed25519Instruction
POSITION_LENGTH
Secp256k1Instruction
SWIG_PROGRAM_ADDRESS
Functions
addAuthority
addAuthorityInstruction
compactInstructions
compressedPubkeyToAddress
createEd25519AuthorityInfo
createEd25519SessionAuthorityInfo
createLegacyTransaction
createSecp256k1AuthorityInfo
createSecp256k1SessionAuthorityInfo
createSessionInstruction
createSubAccountInstruction
createSwig
createSwigInstruction
decodeActionPayload
deserializeRoleData
deserializeRoles
dummySigningFn
fetchNullableSwig
fetchSwig
findSwigPda
findSwigSubAccountPda
getAccountPayloadEncoder
getAccountsPayloadEncoder
getActionHeaderCodec
getActionHeaderDecoder
getActionHeaderEncoder
getAddAuthorityV1AuthorityPayloadEncoder
getAddAuthorityV1BaseAccountMetas
getAddAuthorityV1InstructionCodec
getAddV1BaseAccountMetasWithAuthority
getAuthority
getAuthorityTypeCodec
getAuthorityTypeDecoder
getAuthorityTypeEncoder
getCompactInstructionDecoder
getCompactInstructionEncoder
getCompactInstructionsDecoder
getCompactInstructionsEncoder
getCreateSecp256k1SessionDecoder
getCreateSecp256k1SessionEncoder
getCreateSessionV1AuthorityPayloadCodec
getCreateSessionV1InstructionCodec
getCreateV1BaseAccountMetas
getCreateV1InstructionDataCodec
getEd25519AuthorityFromPublicKey
getEd25519BasedAuthority
getEd25519SessionDecoder
getEd25519SessionEncoder
getEvmPersonalSignPrefix
getNumericTypeDecoder
getNumericTypeEncoder
getPermissionCodec
getPermissionDecoder
getPermissionEncoder
getPositionDecoder
getProgramLimitCodec
getProgramLimitDecoder
getProgramLimitEncoder
getProgramScopeDecoder
getProgramScopeEncoder
getProgramScopeTypeDecoder
getProgramScopeTypeEncoder
getRemoveAuthorityV1AuthorityPayloadEncoder
getRemoveAuthorityV1BaseAccountMetas
getRemoveAuthorityV1InstructionCodec
getRemoveV1BaseAccountMetasWithAuthority
getReplaceAuthorityV1BaseAccountMetas
getReplaceV1BaseAccountMetasWithAuthority
getRoleAuthority
getSecp256k1BasedAuthority
getSecp256k1SessionDecoder
getSecp256k1SessionEncoder
getSigningFnForSecp256k1PrivateKey
getSignInstruction
getSignV1BaseAccountMetas
getSignV1BaseAccountMetasWithAuthority
getSignV1InstructionCodec
getSolLimitCodec
getSolLimitDecoder
getSolLimitEncoder
getSolRecurringLimitCodec
getSolRecurringLimitDecoder
getSolRecurringLimitEncoder
getStakeLimitCodec
getStakeLimitDecoder
getStakeLimitEncoder
getStakeRecurringLimitCodec
getStakeRecurringLimitDecoder
getStakeRecurringLimitEncoder
getSubAccountCodec
getSubAccountCreateV1BaseAccountMetas
getSubAccountCreateV1BaseAccountMetasWithAuthority
getSubAccountCreateV1BaseAccountMetasWithSystemProgram
getSubAccountCreateV1InstructionDataCodec
getSubAccountDecoder
getSubAccountEncoder
getSubAccountSignV1BaseAccountMetas
getSubAccountSignV1BaseAccountMetasWithAuthority
getSubAccountSignV1BaseAccountMetasWithSystemProgram
getSubAccountSignV1InstructionDataCodec
getSubAccountToggleV1BaseAccountMetas
getSubAccountToggleV1BaseAccountMetasWithAuthority
getSubAccountToggleV1BaseAccountMetasWithSystemProgram
getSubAccountToggleV1InstructionDataCodec
getSubAccountWithdrawV1InstructionDataCodec
getSubAccountWithdrawV1SolAccountMetas
getSubAccountWithdrawV1SolAccountMetasWithAuthority
getSubAccountWithdrawV1TokenAccountMetas
getSubAccountWithdrawV1TokenAccountMetasWithAuthority
getSwigAccountDiscriminatorDecoder
getSwigAccountDiscriminatorEncoder
getSwigCodec
getSwigInstructionDiscriminatorDecoder
getSwigInstructionDiscriminatorEncoder
getSwigSubAccountCodec
getTokenLimitCodec
getTokenLimitDecoder
getTokenLimitEncoder
getTokenRecurringLimitCodec
getTokenRecurringLimitDecoder
getTokenRecurringLimitEncoder
getUnprefixedSecpBytes
identifySwigInstruction
isActionPayload
isEd25519Authority
isEd25519BasedAuthority
isEd25519SessionAuthority
isSecp256k1BasedAuthority
isSessionBasedAuthority
isTokenBasedAuthority
prepareSecpPayload
removeAllAuthorityRoles
removeAuthority
removeAuthorityInstruction
signAndSend
signInstruction
swigInstruction
toggleSubAccountInstruction
uint8ArraysEqual
unprefixedHexString
withdrawFromSubAccountInstruction
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Swig
TS
SDK
Enumerations
Authority
Type
Numeric
Type
Permission
Program
Scope
Type
Swig
Account
Discriminator
Swig
Instruction
Discriminator
Classes
Actions
Actions
Builder
Authority
Ed25519
Authority
Ed25519
Session
Authority
Role
Secp256k1
Authority
Secp256k1
Session
Authority
Session
Based
Authority
Spend
Controller
Swig
Swig
Instruction
V1
Token
Based
Authority
Interfaces
Authority
Instruction
Create
Authority
Info
Ed25519
Based
Authority
Secp256k1
Based
Authority
Type Aliases
Account
Meta
Like
Account
Payload
Action
Header
Action
Payload
Add
Authority
V1
Authority
Payload
Add
Authority
V1
Authority
Payload
Args
Add
Authority
V1
Base
Account
Metas
Add
Authority
V1
Base
Account
Metas
With
Authority
Add
Authority
V1
Instruction
Accounts
Add
Authority
V1
Instruction
Data
Add
Authority
V1
Instruction
Data
Args
Authority
Create
Info
Compact
Instruction
Create
Session
V1
Instruction
Authority
Payload
Create
Session
V1
Instruction
Authority
Payload
Args
Create
Session
V1
Instruction
Data
Create
Session
V1
Instruction
Data
Args
Create
V1
Base
Account
Metas
Create
V1
Instruction
Accounts
Create
V1
Instruction
Data
Create
V1
Instruction
Data
Args
Ed25519
Session
Authority
Data
Instruction
Data
Options
Position
Program
Limit
Program
Scope
Remove
Authority
V1
Authority
Payload
Args
Remove
Authority
V1
Base
Account
Metas
Remove
Authority
V1
Base
Account
Metas
With
Authority
Remove
Authority
V1
Instruction
Accounts
Remove
Authority
V1
Instruction
Data
Remove
Authority
V1
Instruction
Data
Args
Replace
Authority
V1
Base
Account
Metas
Replace
Authority
V1
Base
Account
Metas
With
Authority
Replace
Authority
V1
Instruction
Accounts
Secp256k1
Create
Session
Authority
Data
Secp256k1
Session
Authority
Data
Secp256k1
Session
Authority
Data
Args
Session
Based
Role
Signing
Fn
Signing
Result
Sign
V1
Base
Account
Metas
Sign
V1
Base
Account
Metas
With
Authority
Sign
V1
Instruction
Accounts
Sign
V1
Instruction
Data
Sign
V1
Instruction
Data
Args
Sol
Limit
Sol
Recurring
Limit
Spend
Control
Stake
Limit
Stake
Recurring
Limit
Sub
Account
Sub
Account
Create
V1
Base
Account
Metas
Sub
Account
Create
V1
Base
Account
Metas
With
Authority
Sub
Account
Create
V1
Base
Account
Metas
With
System
Program
Sub
Account
Create
V1
Instruction
Accounts
Sub
Account
Create
V1
Instruction
Data
Sub
Account
Create
V1
Instruction
Data
Args
Sub
Account
Sign
V1
Base
Account
Metas
Sub
Account
Sign
V1
Base
Account
Metas
With
Authority
Sub
Account
Sign
V1
Base
Account
Metas
With
System
Program
Sub
Account
Sign
V1
Instruction
Accounts
Sub
Account
Sign
V1
Instruction
Data
Sub
Account
Sign
V1
Instruction
Data
Args
Sub
Account
Toggle
V1
Base
Account
Metas
Sub
Account
Toggle
V1
Base
Account
Metas
With
Authority
Sub
Account
Toggle
V1
Base
Account
Metas
With
System
Program
Sub
Account
Toggle
V1
Instruction
Accounts
Sub
Account
Toggle
V1
Instruction
Data
Sub
Account
Toggle
V1
Instruction
Data
Args
Sub
Account
Withdraw
V1
Base
Account
Metas
Sub
Account
Withdraw
V1
Base
Instruction
Accounts
Sub
Account
Withdraw
V1
Instruction
Data
Sub
Account
Withdraw
V1
Instruction
Data
Args
Sub
Account
Withdraw
V1
Sol
Account
Metas
Sub
Account
Withdraw
V1
Sol
Account
Metas
With
Authority
Sub
Account
Withdraw
V1
Sol
Instruction
Accounts
Sub
Account
Withdraw
V1
Token
Account
Metas
Sub
Account
Withdraw
V1
Token
Account
Metas
With
Authority
Sub
Account
Withdraw
V1
Token
Instruction
Accounts
Swig
Account
Swig
Sub
Account
Token
Based
Role
Token
Limit
Token
Recurring
Limit
Variables
ACTION_
HEADER_
LENGTH
Ed25519
Instruction
POSITION_
LENGTH
Secp256k1
Instruction
SWIG_
PROGRAM_
ADDRESS
Functions
add
Authority
add
Authority
Instruction
compact
Instructions
compressed
Pubkey
To
Address
create
Ed25519
Authority
Info
create
Ed25519
Session
Authority
Info
create
Legacy
Transaction
create
Secp256k1
Authority
Info
create
Secp256k1
Session
Authority
Info
create
Session
Instruction
create
Sub
Account
Instruction
create
Swig
create
Swig
Instruction
decode
Action
Payload
deserialize
Role
Data
deserialize
Roles
dummy
Signing
Fn
fetch
Nullable
Swig
fetch
Swig
find
Swig
Pda
find
Swig
Sub
Account
Pda
get
Account
Payload
Encoder
get
Accounts
Payload
Encoder
get
Action
Header
Codec
get
Action
Header
Decoder
get
Action
Header
Encoder
get
Add
Authority
V1
Authority
Payload
Encoder
get
Add
Authority
V1
Base
Account
Metas
get
Add
Authority
V1
Instruction
Codec
get
Add
V1
Base
Account
Metas
With
Authority
get
Authority
get
Authority
Type
Codec
get
Authority
Type
Decoder
get
Authority
Type
Encoder
get
Compact
Instruction
Decoder
get
Compact
Instruction
Encoder
get
Compact
Instructions
Decoder
get
Compact
Instructions
Encoder
get
Create
Secp256k1
Session
Decoder
get
Create
Secp256k1
Session
Encoder
get
Create
Session
V1
Authority
Payload
Codec
get
Create
Session
V1
Instruction
Codec
get
Create
V1
Base
Account
Metas
get
Create
V1
Instruction
Data
Codec
get
Ed25519
Authority
From
Public
Key
get
Ed25519
Based
Authority
get
Ed25519
Session
Decoder
get
Ed25519
Session
Encoder
get
Evm
Personal
Sign
Prefix
get
Numeric
Type
Decoder
get
Numeric
Type
Encoder
get
Permission
Codec
get
Permission
Decoder
get
Permission
Encoder
get
Position
Decoder
get
Program
Limit
Codec
get
Program
Limit
Decoder
get
Program
Limit
Encoder
get
Program
Scope
Decoder
get
Program
Scope
Encoder
get
Program
Scope
Type
Decoder
get
Program
Scope
Type
Encoder
get
Remove
Authority
V1
Authority
Payload
Encoder
get
Remove
Authority
V1
Base
Account
Metas
get
Remove
Authority
V1
Instruction
Codec
get
Remove
V1
Base
Account
Metas
With
Authority
get
Replace
Authority
V1
Base
Account
Metas
get
Replace
V1
Base
Account
Metas
With
Authority
get
Role
Authority
get
Secp256k1
Based
Authority
get
Secp256k1
Session
Decoder
get
Secp256k1
Session
Encoder
get
Signing
Fn
For
Secp256k1
Private
Key
get
Sign
Instruction
get
Sign
V1
Base
Account
Metas
get
Sign
V1
Base
Account
Metas
With
Authority
get
Sign
V1
Instruction
Codec
get
Sol
Limit
Codec
get
Sol
Limit
Decoder
get
Sol
Limit
Encoder
get
Sol
Recurring
Limit
Codec
get
Sol
Recurring
Limit
Decoder
get
Sol
Recurring
Limit
Encoder
get
Stake
Limit
Codec
get
Stake
Limit
Decoder
get
Stake
Limit
Encoder
get
Stake
Recurring
Limit
Codec
get
Stake
Recurring
Limit
Decoder
get
Stake
Recurring
Limit
Encoder
get
Sub
Account
Codec
get
Sub
Account
Create
V1
Base
Account
Metas
get
Sub
Account
Create
V1
Base
Account
Metas
With
Authority
get
Sub
Account
Create
V1
Base
Account
Metas
With
System
Program
get
Sub
Account
Create
V1
Instruction
Data
Codec
get
Sub
Account
Decoder
get
Sub
Account
Encoder
get
Sub
Account
Sign
V1
Base
Account
Metas
get
Sub
Account
Sign
V1
Base
Account
Metas
With
Authority
get
Sub
Account
Sign
V1
Base
Account
Metas
With
System
Program
get
Sub
Account
Sign
V1
Instruction
Data
Codec
get
Sub
Account
Toggle
V1
Base
Account
Metas
get
Sub
Account
Toggle
V1
Base
Account
Metas
With
Authority
get
Sub
Account
Toggle
V1
Base
Account
Metas
With
System
Program
get
Sub
Account
Toggle
V1
Instruction
Data
Codec
get
Sub
Account
Withdraw
V1
Instruction
Data
Codec
get
Sub
Account
Withdraw
V1
Sol
Account
Metas
get
Sub
Account
Withdraw
V1
Sol
Account
Metas
With
Authority
get
Sub
Account
Withdraw
V1
Token
Account
Metas
get
Sub
Account
Withdraw
V1
Token
Account
Metas
With
Authority
get
Swig
Account
Discriminator
Decoder
get
Swig
Account
Discriminator
Encoder
get
Swig
Codec
get
Swig
Instruction
Discriminator
Decoder
get
Swig
Instruction
Discriminator
Encoder
get
Swig
Sub
Account
Codec
get
Token
Limit
Codec
get
Token
Limit
Decoder
get
Token
Limit
Encoder
get
Token
Recurring
Limit
Codec
get
Token
Recurring
Limit
Decoder
get
Token
Recurring
Limit
Encoder
get
Unprefixed
Secp
Bytes
identify
Swig
Instruction
is
Action
Payload
is
Ed25519
Authority
is
Ed25519
Based
Authority
is
Ed25519
Session
Authority
is
Secp256k1
Based
Authority
is
Session
Based
Authority
is
Token
Based
Authority
prepare
Secp
Payload
remove
All
Authority
Roles
remove
Authority
remove
Authority
Instruction
sign
And
Send
sign
Instruction
swig
Instruction
toggle
Sub
Account
Instruction
uint8
Arrays
Equal
unprefixed
Hex
String
withdraw
From
Sub
Account
Instruction
Swig TS — API References
Loading...