KS note
512 subscribers
61 photos
2 files
72 links
・ Web3 & etc.

πŸ₯·β›“οΈπŸ· @MostPow3rful
Download Telegram
Forwarded from Remedy
⚑ Calling all Web3 Security firms ⚑

Let us join forces and together fortify our blockchain ecosystems!

We're excited to offer Glider Ethereum mainnet access to all our Web3 cybersecurity comrades. Time to level up our defense game!

Start finding bugs at scale nowπŸ‘‰πŸΌ https://exty84bdiei.typeform.com/gliderpartners
πŸ”₯2
KS note
πŸ’Ž Ethereum API Documentation πŸ”— https://ethereum.github.io/execution-apis/api-documentation/ πŸ”— https://github.com/ethereum/execution-apis πŸ”— https://ethereum.org/en/developers/docs/apis/json-rpc/
const axios = require('axios');

async function MakeCall(_method, _jsonRPCUrl) {
try {
const response = await axios.post(_jsonRPCUrl, {
jsonrpc: '2.0',
method: _method,
params: [],
id: 1,
});

console.log(`[Result] ${response.data.result}`);

} catch (error) {
console.error(`[Error] ${error.message}`);
}
}

MakeCall("eth_blockNumber", "https://localhost:8545");
❀4πŸ‘Œ1
πŸ€“ Do not memorize commands. Understand them
πŸ’» foundry β€” [cast call]
VS [cast send]


1️⃣ cast call
・ to call a view/pure function ( non state changing function )
・ required arguments :
・ RPC URL
・ Contract Address
・ Function Name


2️⃣ cast send

・ to call a non view/pure function ( a state changing function )
・ required arguments :
・ RPC URL
・ Contract Address
・ Function Name
・ Private Key


πŸ‘€ where is RPC URL ?
・ default value for RPC URL is https://127.0.0.1:8545 β€”> Anvil

πŸ‘€ why your Private key is plain text ?
・ it belongs to anvil. so, not important


πŸ”—https://book.getfoundry.sh/cast/
πŸ‘Œ5⚑1
πŸ₯· Becoming a Security Researcher - Live on X

πŸ”— https://x.com/HatsFinance/status/1806284016254902592
⚑5
πŸ”— X
πŸ†3⚑1
πŸ₯· The EEA - Latest editor's draft

πŸ”— https://entethalliance.github.io/eta-registry/security-levels-spec.html
⚑3
πŸ’» How to calculate the Address of Contract using WalletAddress and WalletNonce using ethers.js

when a contract is going to be deployed, the address of contract will be generated using 2 argument :
・ 1️⃣ address of deployer's wallet
・ 2️⃣ value of nonce variable
so, you can calculate the address of a contract which is going to be deployed and in other side, you can calculate & find when you can deploy a contract whose address is XXX.

πŸ”— docs of ethers.js
πŸ”— github repo of ethers.js
πŸ”₯6❀2🍾1