Stellar Asset Contract
Overview
Creating a SAC Instance
import { StellarAssetContract, NetworkConfig } from "@colibri/core";
const sac = new StellarAssetContract({
code: "USDC",
issuer: "GCNY5OXYSY4FKHOPT2SPOQZAOEIGXB5LBYW3HVU3OWSTQITS65M5RCNY",
networkConfig: NetworkConfig.TestNet(),
});
// The contract ID is automatically calculated
console.log("Contract ID:", sac.contractId);Deploying the Contract
Reading Token Information
Metadata
Balances and Allowances
Token Operations
Transfer
Approve
Transfer From (Delegated)
Burn
Burn From (Delegated)
Admin Operations
Mint
Set Admin
Set Authorized
Clawback
Method Reference
Read Methods
Method
Parameters
Returns
Description
Invoke Methods
Method
Parameters
Description
Admin Methods
Method
Parameters
Description
Properties
Property
Type
Description
Errors
Code
Class
Description
Notes
See Also
Last updated