본문으로 건너뛰기

Get Methods

Some smart contracts are expected to implement certain well-defined get-methods.

For instance, any subdomain resolver smart contract for TOS DNS is expected to implement the get-method dnsresolve. Custom smart contracts can specify their own get-methods.

위험

At this time, our only general recommendation is to implement the get-method seqno (without parameters) that returns the current seqno of a smart contract that uses sequence numbers to prevent replay attacks related to inbound external methods whenever such a method is appropriate.