Skip to content

Instantly share code, notes, and snippets.

View AminAlizadeh-m's full-sized avatar
🏠
Working from home

Amin Alizadeh AminAlizadeh-m

🏠
Working from home
View GitHub Profile
@AminAlizadeh-m
AminAlizadeh-m / getTronTransactions.ts
Last active January 20, 2023 15:57
Get tron transaction with TatumAPI
// Get latest transaction of tron (TRC20 Tokens Like USDT)
const tatumURL = 'https://api.tatum.io/v3'; // https://tatum.io : Get more info and read docs and get a free api key!
const axiosRequestConfig: AxiosRequestConfig = {
headers: { 'x-api-key': 'TATUM_API_KEY' },
};
const address = 'TRON_ACCOUNT_ADDRESS'; // you can get from trust wallet or generate by your self
const { data } = await axios.get(
`${tatumURL}/tron/transaction/account/${address}/trc20`,
axiosRequestConfig,
);
$ docker run -d --hostname rabbitmq.tx --name rabbitmq -e RABBITMQ_DEFAULT_USER="rabbitmq-administrator" -e RABBITMQ_DEFAULT_PASS="AMINrabbitmqstronpasswordALIZADEH" rabbitmq:3-management
@AminAlizadeh-m
AminAlizadeh-m / yaml
Last active July 20, 2022 19:39
Docker compose rabbitMQ
version: '3.2'
services:
rabbitmq:
image: rabbitmq:management
tty: true
container_name: 'rabbitmq'
environment:
- RABBITMQ_DEFAULT_USER=rabbitmq-administrator
- RABBITMQ_DEFAULT_PASS=AMINrabbitmqstronpasswordALIZADEH
ports: