Relayers deployment
The relayers deployment command let you deploy new relayers associated to your profile
Command
--profile
is the complete path of the profile you want to use, where relayers are defined--master-address
is the account who was used at setup--master-pk
is the private key of the master-address account--num-relayers
is the number of new relayers to deploy--fund
is the amount of STRK to add to the gas tank during the process (optional - default: 0)
cargo run --bin paymaster-cli relayers-deploy --master-address=0xdead --master-pk=0xbeef --profile=path/to/my-profile.json --num-relayers=1
Output example
Starting relayers deployment...
Using chain-id: SN_SEPOLIA
Using RPC URL: https://starknet-sepolia.public.blastapi.io
Nbr of relayers: 1
Fund gas tank with: 1 STRK
Profile path: path/to/my-profile.json
Do you want to proceed with the deployment? This will transfer 1 STRK tokens to your new relayers. (y/N): y
Proceeding with deployment...
1 relayers successfully deployed, tx = 0x...
get_transaction_status; hash=0x...
get_transaction_status; hash=0x...
Transaction succeeded: 0x...
New relayers are deployed, tx = 0x...
Configuration file is updated with 3 total relayers, see path/to/my-profile.json
Master addressIt is important you use the same "master-address" you used at Paymaster deployment setup. This is because all relayers should be whitelisted by the Forwarder, and this can only be done by the Forwarder owner.
Scaling?You can learn more about scaling, and specifically vertical scaling here
Updated 11 days ago