# new Contract(contractId)
Parameters:
Name | Type | Description |
---|---|---|
contractId |
string
|
ID of the contract (ex.
|
Classes
Methods
# call(method, …params) → {xdr.Operation}
Returns an operation that will invoke this contract call.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
method |
string
|
name of the method to call |
|
params |
xdr.ScVal
|
<repeatable> |
arguments to pass to the function call |
- See:
an InvokeHostFunctionOp operation to call the contract with the given method and parameters
xdr.Operation
# contractId() → {string}
Returns Stellar contract ID as a strkey, ex.
CA3D5KRYM6CB7OWQ6TWYRR3Z4T7GNZLKERYNZGGA5SOAOPIFY6YQGAXE
.
string
# getFootprint() → {xdr.LedgerKey}
Returns the read-only footprint entries necessary for any invocations to this contract, for convenience when manually adding it to your transaction's overall footprint or doing bump/restore operations.
the ledger key for the deployed contract instance
xdr.LedgerKey
# toString() → {string}
the ID as a strkey (C...)
string