Skip to main content

asContractAddress

For the complete documentation index, see llms.txt

Midnight.js API Reference v4.0.4


Midnight.js API Reference / @midnight-ntwrk/midnight-js-types / asContractAddress

Function: asContractAddress()

asContractAddress(address): ContractAddress

Constructs a branded contract address from a given string value.

Parameters

address

string

A string value representing a contract address.

Returns

ContractAddress

A ContractAddress constructed from address.