0

I am struggling with the Terminolgy.

allowTrust := txnbuild.SetTrustLineFlags{
        Trustor:  Whos Address?,
        Asset:    issuedAsset,
        SetFlags: []txnbuild.TrustLineFlag{txnbuild.TrustLineAuthorized},
    }

Who's address do we place at the Trustor? Is it the Account that wants to trust a token? Or is it the Token Issuers Address? I find this confusing because the issuedAsset is a json object that includes the address of the Token issuer.

1 Answer 1

1

The Trustor is the account which is authorized. This operation is called by the asset issuer to authorized an account to add the trustline for example. API doc: AllowTrust

If you want to add a trustline to your account, the operation to use is ChangeTrust. API doc: ChangeTrust

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.