stripe.findOrCreateDepositAddress
Resolve a Stripe deposit address
Finds an existing Stripe deposit address or creates one for the requested network.
Usage
server.ts
import from 'stripe'
import { } from 'mppx/server'
const = new (..!)
const = await .(, 'tempo')
.()
0x20C0000000000000000000000000000000000001The helper caches the address for the process lifetime by Stripe client, network, and connected account.
With Stripe Connect
server.ts
import from 'stripe'
import { } from 'mppx/server'
const = new (..!)
const = await .(, 'tempo', {
: {
: 'acct_123',
},
})Return type
type ReturnType<N extends stripe.Network> = Promise<stripe.DepositAddress<N>>Parameters
client
- Type:
StripeClient
Stripe SDK client with rawRequest() support.
network
- Type:
string
Stripe stablecoin network name, such as 'tempo', 'base', or 'solana'.
options (optional)
- Type:
{ connect?: { applicationFeeAmount?: number; onBehalfOf?: string; stripeAccount: string; transferData?: { amount?: number; destination: string }; transferGroup?: string } }
Stripe Connect configuration for resolving the connected account's deposit address.