Guides
Dash CoreDash PlatformDash.orgDash User DocsLog In
These docs are for v0.24.0. Click to read the latest docs for v0.25-redirect.

Usage: client.platform.contracts.get(contractId)
Description: This method will allow you to fetch back a contract from its id.

Parameters:

parameterstyperequiredDescription
identifierstringyesWill fetch back the contract matching the identifier

Example: await client.platform.contracts.get('77w8Xqn25HwJhjodrHW133aXhjuTsTv9ozQaYpSHACE3')

Returns: Contract (or null if it's not a registered contract).