Swing Points Program is Live 🚀 Learn More →

Create a Quote

post
/projects/{projectId}/quote

Request a quote to send a transaction.

projectId
string
required

Swing Project Identifier

Examples:
app-swing-xyz
x-swing-environment
string

Swing API environment to use

Allowed values:
productiontestnet
Default:
production
type

Optionally request a specific type of quote

Allowed values:
swapdepositwithdrawclaimapprovesign
source
object
required
token
string
required

Token address or symbol

chain
string
required

Chain ID or slug

wallet
string
required

Wallet address

amount
string
required

Token amount

destination
object
required
token
string
required

Token address or symbol

chain
string
required

Chain ID or slug

wallet
string
required

Wallet address

amount
string

Token amount

affiliate
string
Parameters
:
:
Body
preparing...