Skip to content

Commit

Permalink
Update read-functions-off-chain.md
Browse files Browse the repository at this point in the history
  • Loading branch information
crosschainer authored Feb 12, 2025
1 parent b02b966 commit c4758c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/read-functions-off-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ The process works as follows:
## Code Example

```javascript
function toHexString(byteArray) {
return Array.from(byteArray, function(byte) {
return ('0' + (byte & 0xFF).toString(16)).slice(-2);
}).join('');
}

async function execute_balance_of(contract, address) {
let payload = {
"sender": "",
Expand Down

0 comments on commit c4758c6

Please sign in to comment.