tip: 175
title: SELFBALANCE instructions in TVM
author: taihao.fu@gmail.com
status: Final
type: Standards Track
category : VM
created: 2020-08-12
To provide SELFBALANCE instruction in TVM.
This is value can directly get current address balance.
Currently we have BALANCE
to get TRX value for a specific address. We may consider to increase BALANCE
energy cost in future for security purpose. But balance for current address is usually consider as a seperate case and it should keeps in a cheap price level. As a result, SELFBALANCE
is introduced here.
SELFBALANCE
takes 0 operands pop up from stack.
The return value the current address account balance.
20 Energy