Set Trustline
This endpoint allows a trustline to be established on the Stellar blockchain specifically for the USDC token issued by Circle on the user's account.
What is it for?
In Stellar, before a token such as Circle's USDC can be received and stored, an account must establish a trustline with the issuer of the asset. This endpoint facilitates that process in an automated fashion.
Note: This endpoint should not necessarily work in main.
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Open API
post
Body
sourceSecretKeystringRequiredExample:
The key of the secret source account that will be used to set the trustline
GABC...XYZ
Responses
200
The trust line has been correctly defined in the USDC token
400
Bad request
401
Unauthorized access
429
Too Many Requests
500
Possible errors:
- Internal server error
application/json
post
POST /helper/set-trustline HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 30
{
"sourceSecretKey": "GDN6I..."
}
No content
Last updated
Was this helpful?