Starknet: USDC On/OffRamp live.   Details →
Sphere Paysphere
Transfer

Create CCTP OffRamp

Cross Chain Transfer Protocol is a protocol that allows for the transfer of digital assets across different blockchain networks.

POST
/v1/cctp/off-ramp
AuthorizationBearer <token>

JWT Bearer token authentication

In: header

sourceChainstring

The network where the CCTP off-ramp originates. Available options are sei and noble.

sourceTransactionHashstring

The transaction hash or signature of the Cross Chain Transfer Protocol burn transaction executed on the source chain.

transferIdstring

The transfer ID of the off-ramp in relation to.

Pattern"^payout_[a-z0-9]+$"

Response Body

curl -X POST "https://api.sandbox.spherepay.co/v1/cctp/off-ramp" \
  -H "Content-Type: application/json" \
  -d '{
    "sourceChain": "sei",
    "sourceTransactionHash": "0x1234...abcd",
    "transferId": 1234567890
  }'
const body = JSON.stringify({
  "sourceChain": "sei",
  "sourceTransactionHash": "0x1234...abcd",
  "transferId": 1234567890
})

fetch("https://api.sandbox.spherepay.co/v1/cctp/off-ramp", {
  body
})
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
  "strings"
)

func main() {
  url := "https://api.sandbox.spherepay.co/v1/cctp/off-ramp"
  body := strings.NewReader(`{
    "sourceChain": "sei",
    "sourceTransactionHash": "0x1234...abcd",
    "transferId": 1234567890
  }`)
  req, _ := http.NewRequest("POST", url, body)
  req.Header.Add("Content-Type", "application/json")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://api.sandbox.spherepay.co/v1/cctp/off-ramp"
body = {
  "sourceChain": "sei",
  "sourceTransactionHash": "0x1234...abcd",
  "transferId": 1234567890
}
response = requests.request("POST", url, json = body, headers = {
  "Content-Type": "application/json"
})

print(response.text)
{
  "id": "cctpOffRamp_1234567890",
  "status": "pending",
  "sourceChain": "sei",
  "destChain": "usd",
  "sourceTx": "0x1234...abcd"
}