PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/avalanche/examples/evm
Просмотр файла: getAtomicTxStatus.ts
import { Avalanche } from "avalanche/dist"
import { EVMAPI } from "avalanche/dist/apis/evm"
const ip: string = "localhost"
const port: number = 9650
const protocol: string = "http"
const networkID: number = 1337
const avalanche: Avalanche = new Avalanche(ip, port, protocol, networkID)
const cchain: EVMAPI = avalanche.CChain()
const main = async (): Promise<any> => {
const txID: string = "FCry2Z1Su9KZqK1XRMhxQS6XuPorxDm3C3RBT7hw32ojiqyvP"
const status: string = await cchain.getAtomicTxStatus(txID)
console.log(status)
}
main()
Выполнить команду
Для локальной разработки. Не используйте в интернете!