“A journey of a thousand steps starts with one Swig.” - Somebody
tutorial.ts
, make sure you are in the examples/classic/transfer
folder for the classic
version and examples/kit/transfer
folder for kit
. Don’t forget to start your validator with bun start-validator
createSwigAccount
💡 This can really be anything, as long as it’s globally unique. You can even use other public keys, strings, or a boring old number if needed.
🧠 This is a standard Solana pattern—Swig just makes it easier.
manageAuthority()
or all()
.
✅You can find all available action types in the Swig SDK docs. New types may be added over time. Swig supports multiple Authority types—this example uses Ed25519 authorities, but others are available for different credentials or verification methods. These handle the Authentication half of Swig’s model. You can find all the types of authorities on the SDK Docs.manageAuthority()
is restrictive but safe. 🚨all()
gives full control—use carefully in production.