Introducing Starknet Network:   OffRamp and OnRamp USDC are now supported for Starknet network.  View changelog for 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>

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.

Response Body

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

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": "string",
    "sourceTransactionHash": "string",
    "transferId": "string"
  }`)
  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": "string",
  "sourceTransactionHash": "string",
  "transferId": "string"
}
response = requests.request("POST", url, json = body, headers = {
  "Content-Type": "application/json"
})

print(response.text)
{
  "id": "string",
  "status": "string",
  "sourceChain": "string",
  "destChain": "string",
  "sourceTx": "string"
}