Skip to content

Instantly share code, notes, and snippets.

@ademidun
Created January 5, 2023 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ademidun/8e3728129d3c73418795e95830871106 to your computer and use it in GitHub Desktop.
Save ademidun/8e3728129d3c73418795e95830871106 to your computer and use it in GitHub Desktop.
Bloomberg Businessweek famously said that businesses could receive payments on Stripe in 7 lines of code. With Safe, anyone can deploy a Safe Smart contract wallet to receive payments in 4 lines.

Bloomberg Businessweek famously said that businesses could receive payments on Stripe in 7 lines of code.

With Safe, anyone can deploy a Safe Smart contract wallet to receive payments in 4 lines.

import Safe, { SafeFactory, SafeAccountConfig } from '@safe-global/safe-core-sdk'
const safeFactory = await SafeFactory.create({ ethAdapter });
const safeAccountConfig: SafeAccountConfig = { owners: ['0x...', '0x...', '0x...'], threshold: 3}
const safeSdk: Safe = await safeFactory.deploySafe({ safeAccountConfig })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment