script

Create P2SHAddress from Sigma source

Changed on
post/script/p2shAddress

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /script/p2shAddress
  • Auth: API key in header api_key

Request body

sourcestring required

Source code of the ErgoScript to be compiled

treeVersioninteger required

Version of ErgoTree to compile to

Response

P2SH address derived from source

addressstring required

Encoded Ergo Address

Example response

{
  "address": "3WwbzW6u8hKWBcL1W7kNVMr25s2UHfSBnYtwSHvrRQt7DdPuoXrt"
}

Changes