npm install gasyard-sdk
import { Gasyard } from 'gasyard-sdk'

const gasyard = new Gasyard({ apiKey: process.env.GASYARD_API_KEY })

// Submit onchain intent
await gasyard.submitOnchainIntent(intent, { value: '0.01' })
Full SDK API reference: https://gasyard.github.io/gasyard-sdk-documentation/For application-level payments and offchain intents, use the Stableyard SDK in the Stableyard docs.