Transaction
Get a Block Transaction - Payment
Request:
Response:
Sample
Note: The operation type is TRANSFER
.
Get a Block Transaction - Contract Deployment
Request:
Response:
Sample
Note: The operation type is contract_deployment
.
Displaying Contract Calls Information for Block Transactions
A contract call can be defined in the either one of the following two forms:
- An account has invoked a function in a contract
- An account has invoked a function in a contract which further invokes another function in a different contract (a.k.a Chain Calling)
Depending on the functions invoked by the contract, a contract call may perform additional smart contract deposits to some accounts.
These smart contract deposits will be shown under the operations []
idential to how typical payment transaction is displayed.
Additional metadata information related to the transaction such as the contract address and gas amount are displayed only at the final operation block to reduce cluttering of metadata.
Get a Block Transaction - Contract Call without Smart Contract Deposits
Request:
Response:
Sample
Note: The operation type is contract_call
.
Get a Block Transaction - Contract Call with Smart Contract Deposits (With Chain Calls)
Request:
Response:
Sample
Note: The operation type is contract_call
, follow by contract_call_transfer
for subsequent operations with a smart contract deposits.
In the sample, the sequence of operations are as follows:
- Initiator
zil16ura3fhsf84h60s7w6xjy4u2wxel892n7sq5dp
-> Contractzil135gsjk2wqxwecn00axm2s40ey6g6ne8668046h
(invokes a contract call to add funds) - Contract
zil135gsjk2wqxwecn00axm2s40ey6g6ne8668046h
(8d1109594e019d9c4defe9b6a855f92691a9e4fa
) -> Recipientzil12n6h5gqhlpw87gtzlqe5sq5r7pq2spj8x2g8pe
(amount is deducted from contract balance and trasnferred to recipient)