1

Is there some type of eos data field where I can store my Bitcoin address and other crypto addresses inside the eos blockchain? I should be able to query this data easily too.

I want to create a service where one can store their btc address and a signed message using the btc private key of the EOS account name. This proves that the EOS account name owns that bitcoin address.

Now I can just give out my eos account name without having to remember or lookup my bitcoin address and people can now send me BTC.

How can i do this?

  • You might want to look at the memo fields that most transactions use to store information – Kabir Jan 26 '19 at 3:57
1

You can write your own contract which can store string (representing your address) in eosio::multi_index table. Table can be accessed easily by RPC call, because the changes are stored in state. (not need to replay all actions to achieve current state)

| improve this answer | |
  • any cost associated? ram? let's say i have 10000 records – Patoshi パトシ Jan 26 '19 at 13:00
  • It costs RAM. Each row will consume the size of data and indices. In your case, bitcoin address usually have 26-35 length string (26-35 bytes) and you need 64-bit unsigned integer ID for primary key. Primary index will consume 112 bytes and if you add secondary index of 256-bit integer by hashing address by sha256 to search for it easily, it will consume 160 bytes more. – conr2d Jan 27 '19 at 10:36
  • whats the average cost of this? – Patoshi パトシ Jan 27 '19 at 16:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.