Examples
Interactive examples demonstrating various Dacc-js functions and use cases. These examples provide hands-on experience with code that you can test and modify.
Client-side
Client-side examples showcase how to use Dacc-js in frontend applications using React and Vite for real-time, interactive blockchain operations.
- Click on
PrevieworBothon StackBlitz tab. - You should wait 1-5 minutes to load.
createDaccWallet
Code: https://github.com/thefactlab-org/dacc-js/tree/main/examples/client/create-dacc-wallet
allowDaccWallet
Code: https://github.com/thefactlab-org/dacc-js/examples/client/allow-dacc-wallet
daccSendNative
Code: https://github.com/thefactlab-org/dacc-js/tree/main/examples/client/dacc-send-native
daccSendToken
Code: https://github.com/thefactlab-org/dacc-js/tree/main/examples/client/dacc-send-token
daccWriteContract
Code: https://github.com/thefactlab-org/dacc-js/tree/main/examples/client/dacc-write-contract
daccSignMessage
Code: https://github.com/thefactlab-org/dacc-js/tree/main/examples/client/dacc-sign-message
Server-side
Server-side examples demonstrate Dacc-js usage in backend applications
createDaccWallet
Code: https://github.com/thefactlab-org/dacc-js/tree/main/examples/server/createDaccWallet
allowDaccWallet
Code: https://github.com/thefactlab-org/dacc-js/tree/main/examples/server/allowDaccWallet
readDaccWallet
Code: https://github.com/thefactlab-org/dacc-js/tree/main/examples/server/readDaccWallet
allowSessionTimeWalletWithJWT
Code: https://github.com/thefactlab-org/dacc-js/tree/main/examples/server/allowSessionTimeWalletWithJWT
verifySessionTimeWalletWithJWT
Code: https://github.com/thefactlab-org/dacc-js/tree/main/examples/server/verifySessionTimeWalletWithJWT
daccSendNative
Code: https://github.com/thefactlab-org/dacc-js/tree/main/examples/server/daccSendNative
daccSendToken
Code: https://github.com/thefactlab-org/dacc-js/tree/main/examples/server/daccSendToken
daccWriteContract
Code: https://github.com/thefactlab-org/dacc-js/tree/main/examples/server/daccWriteContract
daccSignMessage
Code: https://github.com/thefactlab-org/dacc-js/tree/main/examples/server/daccSignMessage
daccSignTypedData
Code: https://github.com/thefactlab-org/dacc-js/tree/main/examples/server/daccSignTypedData
daccSignAuthorizeEIP7702
Code: https://github.com/thefactlab-org/dacc-js/tree/main/examples/server/daccSignAuthorizeEIP7702
Dacc Integrations
Explore examples of integrating Dacc-js with various platforms and services for enhanced blockchain functionality.
x402 Integration
Code: https://github.com/thefactlab-org/dacc-js/tree/main/examples/integration/x402