API docs:
GET /
Params: address
Example: /?address=0x000000000000000000000000000000000000dead
| const PRIVATE_KEY = "" | |
| const TronWeb = require('tronweb') | |
| const tronWeb = new TronWeb({ | |
| fullHost: 'https://api.trongrid.io', | |
| privateKey: PRIVATE_KEY | |
| }) | |
| const ethers = tronWeb.utils.ethersUtils; | |
| var hexStr2byteArray = function(str) { |
| const puppeteer = require('puppeteer'); | |
| let lastCheck = new Date().getTime() | |
| let cache = {} | |
| async function start(){ | |
| if (new Date().getTime() - lastCheck < 1000 * 60 * 30 && cache.eth){ | |
| return cache; | |
| } else { | |
| let text = await getWebsite() |
| [ | |
| { | |
| "anonymous": false, | |
| "inputs": [ | |
| { | |
| "indexed": true, | |
| "internalType": "address", | |
| "name": "user", | |
| "type": "address" | |
| }, |
API docs:
GET /
Params: address
Example: /?address=0x000000000000000000000000000000000000dead
| const dhive = require('@hiveio/dhive'); | |
| const { cryptoUtils, Signature } = dhive | |
| const dhiveClient = new dhive.Client(['https://api.hive.blog'], { | |
| chainId: 'beeab0de00000000000000000000000000000000000000000000000000000000', | |
| }) | |
| async function test(){ | |
| let transaction = { | |
| "ref_block_num":45115, | |
| "ref_block_prefix":1373329981, |
| { | |
| "targets": [ | |
| { | |
| "address": "0xc55e521b0536723cebfa27054c064b3b1d6da103", | |
| "signature": "0xf69e2046", | |
| "gasLimit": 5000000 | |
| }, | |
| { | |
| "address": "0x3f1b0319e2ebed04d5e2ce367393914bbf8f59f5", | |
| "signature": "0xd389800f", |
| [ | |
| { | |
| "inputs": [ | |
| { | |
| "internalType": "address", | |
| "name": "newPenaltyAddress", | |
| "type": "address" | |
| }, | |
| { | |
| "internalType": "uint256", |
| import { token } from "./proto/token"; | |
| export class Token { | |
| public msg: number; | |
| constructor() { | |
| this.msg = 120; | |
| } | |
| name(args: token.name_arguments): token.name_result { |
| import { token } from "./proto/token"; | |
| export class Token { | |
| _name: string; | |
| _symbol: string; | |
| _decimals: i64; | |
| _totalSupply: i64; | |
| constructor() { | |
| this._name = "Koinos Test Token"; |
| syntax = "proto3"; | |
| package dice; | |
| // @description Play the game | |
| // @read-only false | |
| message play_arguments {} | |
| message play_result { | |
| bool value = 1; |