ContractAppURI
Have an official Application URI for this contract.
Configure an official Application URI for this contract.
const contract = await sdk.getContract("{{contract_address}}");const appURI = await contract.app.get();appURI = "ipfs://some_ipfs_hash"; await contract.app.set(appURI);
class ContractAppURI<TContract extends BaseContract> implements DetectableFeature {}
function constructor<TContract extends BaseContract>( contractWrapper: ContractWrapper<TContract>,
Get App URI
const appURI = await contract.app.get();console.log(appURI); // "ipfs://some_ipfs_hash";
function get(): Promise<string>;
function set(appURI: string): Promise<TResult>;
Preparable
You can also prepare the transaction without executing it by calling set.prepare()
with same arguments. Learn more
let featureName: "AppURI";