2

Is it possible to create a smart contract that knows the value of its KT1 address?

E.g. if you wanted the contract to check that there was a signature signed over its contract address, would it be able to find it/refer to it?

1 Answer 1

6

Yes, Michelson provides the following instruction SELF_ADDRESS

In SmartPy you can use sp.self_address

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.