script

Create P2SAddress from Sigma source

Changed on
post/script/p2sAddress

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /script/p2sAddress
  • 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

Ergo address derived from source

addressstring required

Encoded Ergo Address

Example response

{
  "address": "3WwbzW6u8hKWBcL1W7kNVMr25s2UHfSBnYtwSHvrRQt7DdPuoXrt"
}

Changes