diff --git a/website/docs/xdcchain/XDPoSChain/eth/eth_getCode_response.json b/website/docs/xdcchain/XDPoSChain/eth/eth_getCode_response.json new file mode 100644 index 00000000..690f499b --- /dev/null +++ b/website/docs/xdcchain/XDPoSChain/eth/eth_getCode_response.json @@ -0,0 +1,5 @@ +{ + "jsonrpc": "2.0", + "id": 1004, + "result": "0x606060405260043610610196576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063012679511461019b578063025e7c27146101c957806302aa9be21461022c57806306a49fce1461026e5780630db02622146102d85780630e3e4fb81461030157806315febd68146103715780632a3640b1146103a85780632d15cc041461042a5780632f9c4bba146104b8578063302b687214610522578063326586521461058e5780633477ee2e14610640578063441a3e70146106a357806358e7525f146106cf5780635b860d271461071c5780635b9cd8cc146107695780636dd7d8ea1461082457806372e44a3814610852578063a9a981a31461089f578063a9ff959e146108c8578063ae6e43f5146108f1578063b642facd1461092a578063c45607df146109a3578063d09f1ab4146109f0578063d161c76714610a19578063d51b9e9314610a42578063d55b7dff14610a93578063ef18374a14610abc578063f2ee3c7d14610ae5578063f5c9512514610b1e578063f8ac9dd514610b4c575b600080fd5b6101c7600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610b75565b005b34156101d457600080fd5b6101ea60048080359060200190919050506111fc565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561023757600080fd5b61026c600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190505061123b565b005b341561027957600080fd5b610281611796565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156102c45780820151818401526020810190506102a9565b505050509050019250505060405180910390f35b34156102e357600080fd5b6102eb61182a565b6040518082815260200191505060405180910390f35b341561030c57600080fd5b610357600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611830565b604051808215151515815260200191505060405180910390f35b341561037c57600080fd5b610392600480803590602001909190505061185f565b6040518082815260200191505060405180910390f35b34156103b357600080fd5b6103e8600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506118bb565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561043557600080fd5b610461600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611909565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156104a4578082015181840152602081019050610489565b505050509050019250505060405180910390f35b34156104c357600080fd5b6104cb6119dc565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561050e5780820151818401526020810190506104f3565b505050509050019250505060405180910390f35b341561052d57600080fd5b610578600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611a79565b6040518082815260200191505060405180910390f35b341561059957600080fd5b6105c5600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611b03565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156106055780820151818401526020810190506105ea565b50505050905090810190601f1680156106325780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561064b57600080fd5b6106616004808035906020019091905050611da2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156106ae57600080fd5b6106cd6004808035906020019091908035906020019091905050611de1565b005b34156106da57600080fd5b610706600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061208d565b6040518082815260200191505060405180910390f35b341561072757600080fd5b610753600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506120d9565b6040518082815260200191505060405180910390f35b341561077457600080fd5b6107a9600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506121a1565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156107e95780820151818401526020810190506107ce565b50505050905090810190601f1680156108165780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610850600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061226a565b005b341561085d57600080fd5b610889600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050612653565b6040518082815260200191505060405180910390f35b34156108aa57600080fd5b6108b261266b565b6040518082815260200191505060405180910390f35b34156108d357600080fd5b6108db612671565b6040518082815260200191505060405180910390f35b34156108fc57600080fd5b610928600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050612677565b005b341561093557600080fd5b610961600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050612c36565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156109ae57600080fd5b6109da600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050612ca2565b6040518082815260200191505060405180910390f35b34156109fb57600080fd5b610a03612cee565b6040518082815260200191505060405180910390f35b3415610a2457600080fd5b610a2c612cf4565b6040518082815260200191505060405180910390f35b3415610a4d57600080fd5b610a79600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050612cfa565b604051808215151515815260200191505060405180910390f35b3415610a9e57600080fd5b610aa6612d53565b6040518082815260200191505060405180910390f35b3415610ac757600080fd5b610acf612d59565b6040518082815260200191505060405180910390f35b3415610af057600080fd5b610b1c600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050612d63565b005b3415610b2957600080fd5b610b4a600480803590602001908201803590602001919091929050506134f1565b005b3415610b5757600080fd5b610b5f6135f0565b6040518082815260200191505060405180910390f35b6000600b543410151515610b8857600080fd5b6000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050141580610c1c57506000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050115b1515610c2757600080fd5b81600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160149054906101000a900460ff16151515610c8457600080fd5b610cd934600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101546135f690919063ffffffff16565b915060088054806001018281610cef919061362d565b9160005260206000209001600085909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506060604051908101604052803373ffffffffffffffffffffffffffffffffffffffff16815260200160011515815260200183815250600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548160ff02191690831515021790555060408201518160010155905050610eb834600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546135f690919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610f5160016009546135f690919063ffffffff16565b6009819055506000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905014156110185760078054806001018281610fb6919061362d565b9160005260206000209001600033909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050600a600081548092919060010191905055505b600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806001018281611069919061362d565b9160005260206000209001600085909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806001018281611109919061362d565b9160005260206000209001600033909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550507f7635f1d87b47fba9f2b09e56eb4be75cca030e0cb179c1602ac9261d39a8f5c1338434604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405180910390a1505050565b60078181548110151561120b57fe5b90600052602060002090016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000828280600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054101515156112cd57600080fd5b3373ffffffffffffffffffffffffffffffffffffffff16600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561140657600b546113f882600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461361490919063ffffffff16565b1015151561140557600080fd5b5b61145b84600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015461361490919063ffffffff16565b600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001018190555061153384600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461361490919063ffffffff16565b600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506115cb43600f546135f690919063ffffffff16565b9250611632846000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000016000868152602001908152602001600020546135f690919063ffffffff16565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000016000858152602001908152602001600020819055506000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010180548060010182816116db9190613659565b9160005260206000209001600085909190915055507faa0e554f781c3c3b2be110a0557f260f11af9a8aa2c64bc1e7a31dbb21e32fa2338686604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405180910390a15050505050565b61179e613685565b600880548060200260200160405190810160405280929190818152602001828054801561182057602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190600101908083116117d6575b5050505050905090565b600a5481565b60056020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b60008060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000016000838152602001908152602001600020549050919050565b6006602052816000526040600020818154811015156118d657fe5b90600052602060002090016000915091509054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611911613685565b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806020026020016040519081016040528092919081815260200182805480156119d057602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611986575b50505050509050919050565b6119e4613699565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101805480602002602001604051908101604052809291908181526020018280548015611a6f57602002820191906000526020600020905b815481526020019060010190808311611a5b575b5050505050905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b611b0b6136ad565b611b1482612cfa565b15611c655760036000611b2684612c36565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600160036000611b6f86612c36565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905003815481101515611bba57fe5b90600052602060002090018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611c595780601f10611c2e57610100808354040283529160200191611c59565b820191906000526020600020905b815481529060010190602001808311611c3c57829003601f168201915b50505050509050611d9d565b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905003815481101515611cf657fe5b90600052602060002090018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611d955780601f10611d6a57610100808354040283529160200191611d95565b820191906000526020600020905b815481529060010190602001808311611d7857829003601f168201915b505050505090505b919050565b600881815481101515611db157fe5b90600052602060002090016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008282600082111515611df457600080fd5b814310151515611e0357600080fd5b60008060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001600084815260200190815260200160002054111515611e6457600080fd5b816000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010182815481101515611eb357fe5b906000526020600020900154141515611ecb57600080fd5b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008681526020019081526020016000205492506000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000016000868152602001908152602001600020600090556000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010184815481101515611fc457fe5b9060005260206000209001600090553373ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f19350505050151561201357600080fd5b7ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568338685604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a15050505050565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101549050919050565b60008082600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160149054906101000a900460ff16151561213857600080fd5b61214184612c36565b915061214b612d59565b6064600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020540281151561219757fe5b0492505050919050565b6003602052816000526040600020818154811015156121bc57fe5b9060005260206000209001600091509150508054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156122625780601f1061223757610100808354040283529160200191612262565b820191906000526020600020905b81548152906001019060200180831161224557829003601f168201915b505050505081565b600c54341015151561227b57600080fd5b80600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160149054906101000a900460ff1615156122d757600080fd5b61232c34600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101546135f690919063ffffffff16565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055506000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054141561249b57600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480600101828161244b919061362d565b9160005260206000209001600033909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505b61252d34600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546135f690919063ffffffff16565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f66a9138482c99e9baf08860110ef332cc0c23b4a199a53593d8db0fc8f96fbfc338334604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405180910390a15050565b60046020528060005260406000206000915090505481565b60095481565b600f5481565b6000806000833373ffffffffffffffffffffffffffffffffffffffff16600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561271957600080fd5b84600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160149054906101000a900460ff16151561277557600080fd5b6000600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160146101000a81548160ff0219169083151502179055506127e6600160095461361490919063ffffffff16565b600981905550600094505b6008805490508510156128bb578573ffffffffffffffffffffffffffffffffffffffff1660088681548110151561282457fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156128ae5760088581548110151561287b57fe5b906000526020600020900160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556128bb565b84806001019550506127f1565b600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054935061299284600160008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015461361490919063ffffffff16565b600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055506000600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612a7243600e546135f690919063ffffffff16565b9250612ad9846000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000016000868152602001908152602001600020546135f690919063ffffffff16565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000016000858152602001908152602001600020819055506000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001018054806001018281612b829190613659565b9160005260206000209001600085909190915055507f4edf3e325d0063213a39f9085522994a1c44bea5f39e7d63ef61260a1e58c6d33387604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1505050505050565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050919050565b600d5481565b600e5481565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160149054906101000a900460ff169050919050565b600b5481565b6000600a54905090565b600080612d6e613685565b600080600033600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160149054906101000a900460ff161515612dcf57600080fd5b87600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160149054906101000a900460ff161515612e2b57600080fd5b612e3433612c36565b9750612e3f89612c36565b9650600560008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151515612ed757600080fd5b6001600560008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600460008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550604b612fc4612d59565b6064600460008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020540281151561301057fe5b041015156134e65760016008805490500360405180591061302e5750595b9080825280602002602001820160405250955060009450600093505b600880549050841015613357578673ffffffffffffffffffffffffffffffffffffffff166130b160088681548110151561308057fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612c36565b73ffffffffffffffffffffffffffffffffffffffff16141561334a576130e3600160095461361490919063ffffffff16565b6009819055506008848154811015156130f857fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16868680600101975081518110151561313857fe5b9060200190602002019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060088481548110151561318357fe5b906000526020600020900160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600160006008868154811015156131c457fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a81549060ff021916905560018201600090555050600360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006132bb91906136c1565b600660008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061330691906136e2565b600460008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600090555b838060010194505061304a565b600092505b600780549050831015613439578673ffffffffffffffffffffffffffffffffffffffff1660078481548110151561338f57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561342c576007838154811015156133e657fe5b906000526020600020900160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600a6000815480929190600190039190505550613439565b828060010193505061335c565b7fe18d61a5bf4aa2ab40afc88aa9039d27ae17ff4ec1c65f5f414df6f02ce8b35e8787604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019060200280838360005b838110156134d15780820151818401526020810190506134b6565b50505050905001935050505060405180910390a15b505050505050505050565b600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548060010182816135429190613703565b91600052602060002090016000848490919290919250919061356592919061372f565b50507f949360d814b28a3b393a68909efe1fee120ee09cac30f360a0f80ab5415a611a338383604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001806020018281038252848482818152602001925080828437820191505094505050505060405180910390a15050565b600c5481565b600080828401905083811015151561360a57fe5b8091505092915050565b600082821115151561362257fe5b818303905092915050565b8154818355818115116136545781836000526020600020918201910161365391906137af565b5b505050565b8154818355818115116136805781836000526020600020918201910161367f91906137af565b5b505050565b602060405190810160405280600081525090565b602060405190810160405280600081525090565b602060405190810160405280600081525090565b50805460008255906000526020600020908101906136df91906137d4565b50565b508054600082559060005260206000209081019061370091906137af565b50565b81548183558181151161372a5781836000526020600020918201910161372991906137d4565b5b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061377057803560ff191683800117855561379e565b8280016001018555821561379e579182015b8281111561379d578235825591602001919060010190613782565b5b5090506137ab91906137af565b5090565b6137d191905b808211156137cd5760008160009055506001016137b5565b5090565b90565b6137fd91905b808211156137f957600081816137f09190613800565b506001016137da565b5090565b90565b50805460018160011615610100020316600290046000825580601f106138265750613845565b601f01602090049060005260206000209081019061384491906137af565b5b505600a165627a7a72305820f5bbb127b52ce86c873faef85cff176563476a5e49a3d88eaa9a06a8f432c9080029" +} diff --git a/website/docs/xdcchain/XDPoSChain/eth/eth_getTransactionByHash_response.json b/website/docs/xdcchain/XDPoSChain/eth/eth_getTransactionByHash_response.json new file mode 100644 index 00000000..8ad6460d --- /dev/null +++ b/website/docs/xdcchain/XDPoSChain/eth/eth_getTransactionByHash_response.json @@ -0,0 +1,21 @@ +{ + "jsonrpc": "2.0", + "id": 1001, + "result": { + "blockHash": "0xb6fbeabaa5682445b825c5bb02faf9290a38be44d9a47834b65224478923ebce", + "blockNumber": "0x548f4f1", + "from": "0xd844d373f4ef676665fcc18d9b6c89464a36f2d2", + "gas": "0xf4240", + "gasPrice": "0x37e11d600", + "hash": "0xbf83342ccdd6592eff8e2acfed87e23e852d684a4e2cfade89ba3b304c2b66a9", + "input": "0x414bf3890000000000000000000000003fb46c4db76d8e9f69f3f8388f43a7ca7e140807000000000000000000000000951857744785e80e2de051c32ee7b25f9c458c420000000000000000000000000000000000000000000000000000000000000064000000000000000000000000d844d373f4ef676665fcc18d9b6c89464a36f2d20000000000000000000000000000000000000000000000000000000068254fab000000000000000000000000000000000000000000000fccf103db7d22e000000000000000000000000000000000000000000000000000acee08ed426a20ae840000000000000000000000000000000000000000000000000000000000000000", + "nonce": "0x5e8f", + "to": "0xecf4ea7907e779b8a7d0f90cb95fe06f43b610fb", + "transactionIndex": "0x0", + "value": "0x0", + "type": "0x0", + "v": "0x88", + "r": "0x5b1d0e4565493e5f815e26d622c6b9f5c7f23e269eac6ed950446ff7a10e3197", + "s": "0x25df537fe481c63c7defaaaccdd91105a0088f720789ecf5728460a4c3c0fc2" + } +} diff --git a/website/docs/xdcchain/XDPoSChain/eth/eth_getTransactionReceipt_response.json b/website/docs/xdcchain/XDPoSChain/eth/eth_getTransactionReceipt_response.json new file mode 100644 index 00000000..afe48813 --- /dev/null +++ b/website/docs/xdcchain/XDPoSChain/eth/eth_getTransactionReceipt_response.json @@ -0,0 +1,95 @@ +{ + "jsonrpc": "2.0", + "id": 5002, + "result": { + "blockHash": "0xb6fbeabaa5682445b825c5bb02faf9290a38be44d9a47834b65224478923ebce", + "blockNumber": "0x548f4f1", + "contractAddress": null, + "cumulativeGasUsed": "0x256ba", + "from": "0xd844d373f4ef676665fcc18d9b6c89464a36f2d2", + "gasUsed": "0x256ba", + "logs": [ + { + "address": "0x3fb46c4db76d8e9f69f3f8388f43a7ca7e140807", + "topics": [ + "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", + "0x000000000000000000000000712d30c0975386b043e09224433f400ea87cab7d", + "0x00000000000000000000000061b7b0009fced05695ee811b7f8f78ba37c38344" + ], + "data": "0x0000000000000000000000000000000000000000000000000a5ae491119b0000", + "blockNumber": "0x548f4f1", + "transactionHash": "0xbf83342ccdd6592eff8e2acfed87e23e852d684a4e2cfade89ba3b304c2b66a9", + "transactionIndex": "0x0", + "blockHash": "0xb6fbeabaa5682445b825c5bb02faf9290a38be44d9a47834b65224478923ebce", + "logIndex": "0x0", + "removed": false + }, + { + "address": "0x951857744785e80e2de051c32ee7b25f9c458c42", + "topics": [ + "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", + "0x000000000000000000000000712d30c0975386b043e09224433f400ea87cab7d", + "0x000000000000000000000000d844d373f4ef676665fcc18d9b6c89464a36f2d2" + ], + "data": "0x0000000000000000000000000000000000000000000000b593895f85bc3bea71", + "blockNumber": "0x548f4f1", + "transactionHash": "0xbf83342ccdd6592eff8e2acfed87e23e852d684a4e2cfade89ba3b304c2b66a9", + "transactionIndex": "0x0", + "blockHash": "0xb6fbeabaa5682445b825c5bb02faf9290a38be44d9a47834b65224478923ebce", + "logIndex": "0x1", + "removed": false + }, + { + "address": "0x3fb46c4db76d8e9f69f3f8388f43a7ca7e140807", + "topics": [ + "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", + "0x000000000000000000000000d844d373f4ef676665fcc18d9b6c89464a36f2d2", + "0x000000000000000000000000712d30c0975386b043e09224433f400ea87cab7d" + ], + "data": "0x000000000000000000000000000000000000000000000fccf103db7d22e00000", + "blockNumber": "0x548f4f1", + "transactionHash": "0xbf83342ccdd6592eff8e2acfed87e23e852d684a4e2cfade89ba3b304c2b66a9", + "transactionIndex": "0x0", + "blockHash": "0xb6fbeabaa5682445b825c5bb02faf9290a38be44d9a47834b65224478923ebce", + "logIndex": "0x2", + "removed": false + }, + { + "address": "0x3fb46c4db76d8e9f69f3f8388f43a7ca7e140807", + "topics": [ + "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", + "0x000000000000000000000000d844d373f4ef676665fcc18d9b6c89464a36f2d2", + "0x000000000000000000000000ecf4ea7907e779b8a7d0f90cb95fe06f43b610fb" + ], + "data": "0x000000000000000000000000000000000000314dc3a0f41e5c923c6637280000", + "blockNumber": "0x548f4f1", + "transactionHash": "0xbf83342ccdd6592eff8e2acfed87e23e852d684a4e2cfade89ba3b304c2b66a9", + "transactionIndex": "0x0", + "blockHash": "0xb6fbeabaa5682445b825c5bb02faf9290a38be44d9a47834b65224478923ebce", + "logIndex": "0x3", + "removed": false + }, + { + "address": "0x712d30c0975386b043e09224433f400ea87cab7d", + "topics": [ + "0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67", + "0x000000000000000000000000ecf4ea7907e779b8a7d0f90cb95fe06f43b610fb", + "0x000000000000000000000000d844d373f4ef676665fcc18d9b6c89464a36f2d2" + ], + "data": "0x000000000000000000000000000000000000000000000fccf103db7d22e00000ffffffffffffffffffffffffffffffffffffffffffffff4a6c76a07a43c4158f0000000000000000000000000000000000000000363decaa6e4099f6e686ca910000000000000000000000000000000000000000220948b5cb625b7056562c32ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff86c3", + "blockNumber": "0x548f4f1", + "transactionHash": "0xbf83342ccdd6592eff8e2acfed87e23e852d684a4e2cfade89ba3b304c2b66a9", + "transactionIndex": "0x0", + "blockHash": "0xb6fbeabaa5682445b825c5bb02faf9290a38be44d9a47834b65224478923ebce", + "logIndex": "0x4", + "removed": false + } + ], + "logsBloom": "0x00000020000000002000000000000000000000000000000000000000000000000080000008020000000000800200000000000000000420000000000000200000000000000000000800000008000008010000000000000000000000000000080000000000000000100000000000000000000000000000000000000010000800000000001000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000480000000040000000002000000000004000000000000000000000040000000000000000000000030000000000000000000000000000000000000000000040000000000000010", + "status": "0x1", + "to": "0xecf4ea7907e779b8a7d0f90cb95fe06f43b610fb", + "transactionHash": "0xbf83342ccdd6592eff8e2acfed87e23e852d684a4e2cfade89ba3b304c2b66a9", + "transactionIndex": "0x0", + "type": "0x0" + } +} diff --git a/website/docs/xdcchain/XDPoSChain/miner/miner.md b/website/docs/xdcchain/XDPoSChain/miner/miner.md new file mode 100644 index 00000000..da748946 --- /dev/null +++ b/website/docs/xdcchain/XDPoSChain/miner/miner.md @@ -0,0 +1,282 @@ +--- +title: Module miner +--- + + +# Module miner + +The `miner` API is now deprecated because mining was switched off at the transition to proof-of-stake. It existed to provide remote control the node's mining operation and set various mining specific settings. It is provided here for historical interest! + +## Method miner_setEtherbase + +The `setEtherbase` method sets the etherbase (mining reward recipient) account. + +Parameters: + +- etherbase: address, required + +Returns: + +result: bool + +Example: + +```shell +curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{ + "jsonrpc": "2.0", + "id": 1001, + "method": "miner_setEtherbase", + "params": [ + "0xD4CE02705041F04135f1949Bc835c1Fe0885513c" + ] +}' | jq +``` + +Response: + +```json +{ + "jsonrpc": "2.0", + "id": 1001, + "result": true +} +``` + +## Method miner_setExtra + +The `setExtra` method sets the extra data a miner can include when miner blocks. This is capped at 32 bytes. + +Parameters: + +- extra: string, required + +Returns: + +result: bool + +Example: + +```shell +curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{ + "jsonrpc": "2.0", + "id": 1001, + "method": "miner_setExtra", + "params": [ + "string" + ] +}' | jq +``` + +Response: + +```json +{ + "jsonrpc": "2.0", + "id": 1001, + "result": true +} +``` + +## Method miner_setGasPrice + +The `setGasPrice` method sets the minimal accepted gas price when mining transactions. Any transactions that are below this limit are excluded from the mining process. + +Parameters: + +- gasPrice: big.Int, required + +Returns: + +result: bool + +Example: + +```shell +curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{ + "jsonrpc": "2.0", + "id": 1001, + "method": "miner_setGasPrice", + "params": [ + "0x1" + ] +}' | jq +``` + +Response: + +```json +{ + "jsonrpc": "2.0", + "id": 1001, + "result": true +} +``` + +## Method miner_start + +The `start` method start the miner with the given number of threads. If threads is nil the number of workers started is equal to the number of logical CPUs that are usable by this process. If mining is already running, this method adjust the number of threads allowed to use. + +Parameters: + +- threads: int, optional + +Returns: + +result: bool + +Example: + +```shell +curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{ + "jsonrpc": "2.0", + "id": 1001, + "method": "miner_start", + "params": [ + 1 + ] +}' | jq +``` + +Response: + +```json +{ + "jsonrpc": "2.0", + "id": 1001, + "result": true +} +``` + +## Method miner_stop + +The `stop` method stop the CPU mining operation. + +Parameters: + +None + +Returns: + +result: bool + +Example: + +```shell +curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{ + "jsonrpc": "2.0", + "id": 1001, + "method": "miner_stop" +}' | jq +``` + +Response: + +```json +{ + "jsonrpc": "2.0", + "id": 1001, + "result": true +} +``` + +## Method miner_getHashrate + +The `getHashrate` method returns the current mining hashrate in H/s. + +Parameters: + +None + +Returns: + +result: uint64 + +Example: + +```shell +curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{ + "jsonrpc": "2.0", + "id": 1001, + "method": "miner_getHashrate" +}' | jq +``` + +## Method miner_getWork + +The `getWork` method returns current mining work package. + +Parameters: + +None + +Returns: + +result: array of string, `[pow-hash, seed-hash, target]` + +Example: + +```shell +curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{ + "jsonrpc": "2.0", + "id": 1001, + "method": "miner_getWork" +}' | jq +``` + +## Method miner_submitWork + +The `submitWork` method submits a mined nonce solution. + +Parameters: + +- nonce: string, required, 8-byte hex nonce +- powHash: string, required, 32-byte work identifier (the `pow-hash` value returned by `miner_getWork`) +- mixDigest: string, required, 32-byte mix digest for the submitted nonce + +Use `miner_getWork` result as `[pow-hash, seed-hash, target]` and pass only `pow-hash` as the second parameter here. The third parameter must be the computed mix digest (not `seed-hash`). + +Returns: + +result: bool + +Example: + +```shell +curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{ + "jsonrpc": "2.0", + "id": 1001, + "method": "miner_submitWork", + "params": [ + "0x0000000000000001", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x0000000000000000000000000000000000000000000000000000000000000000" + ] +}' | jq +``` + +## Method miner_submitHashrate + +The `submitHashrate` method submits the miner's hashrate estimate. + +Parameters: + +- hashrate: uint64, required, hexadecimal quantity +- id: string, required, miner identifier hash + +Returns: + +result: bool + +Example: + +```shell +curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{ + "jsonrpc": "2.0", + "id": 1001, + "method": "miner_submitHashrate", + "params": [ + "0x1", + "0x0000000000000000000000000000000000000000000000000000000000000001" + ] +}' | jq +``` diff --git a/website/docs/xdcchain/XDPoSChain/net/net.md b/website/docs/xdcchain/XDPoSChain/net/net.md new file mode 100644 index 00000000..67284158 --- /dev/null +++ b/website/docs/xdcchain/XDPoSChain/net/net.md @@ -0,0 +1,104 @@ +--- +title: Module net +--- + + +# Module net + +The `net` API provides insight about the networking aspect of the client. + +## Method net_listening + +The `listening` method returns an indication if the node is listening for network connections. + +Parameters: + +None + +Returns: + +result: bool, always listening + +Example: + +```shell +curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{ + "jsonrpc": "2.0", + "id": 1001, + "method": "net_listening" +}' | jq +``` + +Response: + +```json +{ + "jsonrpc": "2.0", + "id": 1001, + "result": true +} +``` + +## Method net_peerCount + +The `peerCount` method returns the number of connected peers. + +Parameters: + +None + +Returns: + +result: uint + +Example: + +```shell +curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{ + "jsonrpc": "2.0", + "id": 1001, + "method": "net_peerCount" +}' | jq +``` + +Response: + +```json +{ + "jsonrpc": "2.0", + "id": 1001, + "result": "0x10" +} +``` + +## Method net_version + +The `version` method returns the devp2p network ID + +Parameters: + +None + +Returns: + +result: string + +Example: + +```shell +curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{ + "jsonrpc": "2.0", + "id": 1001, + "method": "net_version" +}' | jq +``` + +Response: + +```json +{ + "jsonrpc": "2.0", + "id": 1001, + "result": "50" +} +``` diff --git a/website/docs/xdcchain/XDPoSChain/rpc/rpc.md b/website/docs/xdcchain/XDPoSChain/rpc/rpc.md new file mode 100644 index 00000000..c531527a --- /dev/null +++ b/website/docs/xdcchain/XDPoSChain/rpc/rpc.md @@ -0,0 +1,49 @@ +--- +title: Module rpc +--- + + +# Module rpc + +## Method rpc_modules + +The `modules` returns the list of RPC services with their version number. + +Parameters: + +None + +Returns: + +result: ojbect + +Example: + +Request: + +```shell +curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{ + "jsonrpc": "2.0", + "id": 1001, + "method": "rpc_modules" +}' | jq +``` + +Response: + +```json +{ + "jsonrpc": "2.0", + "id": 1001, + "result": { + "XDPoS": "1.0", + "debug": "1.0", + "eth": "1.0", + "net": "1.0", + "personal": "1.0", + "rpc": "1.0", + "txpool": "1.0", + "web3": "1.0" + } +} +``` diff --git a/website/docs/xdcchain/XDPoSChain/txpool/txpool.md b/website/docs/xdcchain/XDPoSChain/txpool/txpool.md new file mode 100644 index 00000000..9e9cb846 --- /dev/null +++ b/website/docs/xdcchain/XDPoSChain/txpool/txpool.md @@ -0,0 +1,187 @@ +--- +title: Module txpool +--- + + +# Module txpool + +## Method txpool_content + +The `content` method lists the exact details of all the transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only. + +The result is an object with two fields pending and queued. Each of these fields are associative arrays, in which each entry maps an origin-address to a batch of scheduled transactions. These batches themselves are maps associating nonces with actual transactions. + +Please note, there may be multiple transactions associated with the same account and nonce. This can happen if the user broadcast multiple ones with varying gas allowances (or even completely different transactions). + +Parameters: + +None + +Returns: + +result: ojbect + +Example: + +Request: + +```shell +curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{ + "jsonrpc": "2.0", + "id": 1001, + "method": "txpool_content" +}' | jq +``` + +Response: + +```json +{ + "jsonrpc": "2.0", + "id": 1001, + "result": { + "pending": { + "xdc6a7B501F6Becea116623eF1C85304d0983a42FA0": { + "257783": { + "blockHash": null, + "blockNumber": null, + "from": "0x6a7b501f6becea116623ef1c85304d0983a42fa0", + "gas": "0x7362", + "gasPrice": "0x2e90edd00", + "hash": "0x63cb7582191467f9ea0f91e56033185be96374625e28565b3e34cab4ba4f4739", + "input": "0xafb91b2e000000000000000000000000d4b0e654a0b07d522b28fb1f20a8ba3c07617db30000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000277b22726f6c65223a2275736572222c2267616d654964223a322c226576656e744964223a34347d00000000000000000000000000000000000000000000000000", + "nonce": "0x3eef7", + "to": "0x30632a3c801031a5d6a1b3589966b60ee2fbc301", + "transactionIndex": null, + "value": "0x0", + "type": "0x0", + "v": "0x88", + "r": "0x87b1fa4d4e23f61fb503f1cdf7791a0ccd76ae8fd8c9b5c8e74f3f9a62913f9a", + "s": "0x45dfee63317820545d85e9001fdb8f1561bc63c44f7bf4d19726c4fb4d4259e5" + } + } + }, + "queued": {} + } +} +``` + +## Method txpool_contentFrom + +The `contentFrom` method retrieves the transactions contained within the txpool, returning pending as well as queued transactions of this address, grouped by nonce. + +Parameters: + +- addr: addrress, required + +Returns: + +result: ojbect + +Example: + +Request: + +```shell +curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{ + "jsonrpc": "2.0", + "id": 1001, + "method": "txpool_contentFrom", + "params": [ + "0xD4CE02705041F04135f1949Bc835c1Fe0885513c" + ] +}' | jq +``` + +Response: + +```json +{ + "jsonrpc": "2.0", + "id": 1001, + "result": { + "pending": {}, + "queued": {} + } +} +``` + +## Method txpool_inspect + +The `inspect` lists a textual summary of all the transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only. This is a method specifically tailored to developers to quickly see the transactions in the pool and find any potential issues. + +The result is an object with two fields pending and queued. Each of these fields are associative arrays, in which each entry maps an origin-address to a batch of scheduled transactions. These batches themselves are maps associating nonces with transactions summary strings. + +Please note, there may be multiple transactions associated with the same account and nonce. This can happen if the user broadcast multiple ones with varying gas allowances (or even completely different transactions). + +Parameters: + +None + +Returns: + +result: ojbect + +Example: + +Request: + +```shell +curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{ + "jsonrpc": "2.0", + "id": 1001, + "method": "txpool_inspect" +}' | jq +``` + +Response: + +```json +{ + "jsonrpc": "2.0", + "id": 1001, + "result": { + "pending": {}, + "queued": {} + } +} +``` + +## Method txpool_status + +The `status` method returns the number of pending and queued transaction in the pool. + +The result is an object with two fields pending and queued, each of which is a counter representing the number of transactions in that particular state. + +Parameters: + +None + +Returns: + +result: ojbect + +Example: + +Request: + +```shell +curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{ + "jsonrpc": "2.0", + "id": 1001, + "method": "txpool_status" +}' | jq +``` + +Response: + +```json +{ + "jsonrpc": "2.0", + "id": 1001, + "result": { + "pending": "0x3", + "queued": "0x0" + } +} +``` diff --git a/website/docs/xdcchain/XDPoSChain/txpool/txpool_content.json b/website/docs/xdcchain/XDPoSChain/txpool/txpool_content.json new file mode 100644 index 00000000..5c96365b --- /dev/null +++ b/website/docs/xdcchain/XDPoSChain/txpool/txpool_content.json @@ -0,0 +1,28 @@ +{ + "jsonrpc": "2.0", + "id": 1001, + "result": { + "pending": { + "xdc6a7B501F6Becea116623eF1C85304d0983a42FA0": { + "257783": { + "blockHash": null, + "blockNumber": null, + "from": "0x6a7b501f6becea116623ef1c85304d0983a42fa0", + "gas": "0x7362", + "gasPrice": "0x2e90edd00", + "hash": "0x63cb7582191467f9ea0f91e56033185be96374625e28565b3e34cab4ba4f4739", + "input": "0xafb91b2e000000000000000000000000d4b0e654a0b07d522b28fb1f20a8ba3c07617db30000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000277b22726f6c65223a2275736572222c2267616d654964223a322c226576656e744964223a34347d00000000000000000000000000000000000000000000000000", + "nonce": "0x3eef7", + "to": "0x30632a3c801031a5d6a1b3589966b60ee2fbc301", + "transactionIndex": null, + "value": "0x0", + "type": "0x0", + "v": "0x88", + "r": "0x87b1fa4d4e23f61fb503f1cdf7791a0ccd76ae8fd8c9b5c8e74f3f9a62913f9a", + "s": "0x45dfee63317820545d85e9001fdb8f1561bc63c44f7bf4d19726c4fb4d4259e5" + } + } + }, + "queued": {} + } +} diff --git a/website/docs/xdcchain/XDPoSChain/web3/web3.md b/website/docs/xdcchain/XDPoSChain/web3/web3.md new file mode 100644 index 00000000..e7e8a37d --- /dev/null +++ b/website/docs/xdcchain/XDPoSChain/web3/web3.md @@ -0,0 +1,72 @@ +--- +title: Module web3 +--- + +# Module web3 + +## Method web3_clientVersion + +The `clientVersion` method returns the current client version string. + +Parameters: + +None + +Returns: + +result: string + +Example: + +```shell +curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{ + "jsonrpc": "2.0", + "id": 1001, + "method": "web3_clientVersion" +}' | jq +``` + +Response: + +```json +{ + "jsonrpc": "2.0", + "id": 1001, + "result": "XDC/v2.7.0-devnet-abbf357e-20260327/linux-amd64/go1.25.8" +} +``` + +## Method web3_sha3 + +The `sha3` method calculates Keccak-256 of the given data. + +Parameters: + +- data: DATA, required, hex-encoded bytes + +Returns: + +result: DATA, 32-byte hash + +Example: + +```shell +curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{ + "jsonrpc": "2.0", + "id": 1001, + "method": "web3_sha3", + "params": [ + "0x68656c6c6f20776f726c64" + ] +}' | jq +``` + +Response: + +```json +{ + "jsonrpc": "2.0", + "id": 1001, + "result": "0x47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad" +} +``` diff --git a/website/docs/xdcchain/community/community-bounty.md b/website/docs/xdcchain/community/community-bounty.md new file mode 100644 index 00000000..cc6593aa --- /dev/null +++ b/website/docs/xdcchain/community/community-bounty.md @@ -0,0 +1,5 @@ +--- +title: Community Bounty +--- + +# Community Bounty