When using for example ropsten testnet as a provider like
How do I identify the account address of my transactions?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
if you're using rpc calls, most of them will have a "from" address. you have to sign them with the correct private key.
if you're using truffle (in migrations,from example) you do it like this (where xxxxx is your private key in hex, without 0x in the beginning):
var wallet = require('ethereumjs-wallet').fromPrivateKey(Buffer.from('xxxxxxxxxxxx', 'hex')) var provider = new WalletProvider(wallet, "https://mainnet.infura.io/<infura_token>");